[vlc-devel] commit: Fix NULL dereference (CID#236) ( Rémi Denis-Courmont )
git version control
git at videolan.org
Mon Oct 6 15:46:45 CEST 2008
vlc | branch: 0.9-bugfix | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Oct 5 17:15:00 2008 +0300| [b27cd243f05ec2855ae32fceaa43dc5ee3f90a18] | committer: Derk-Jan Hartman
Fix NULL dereference (CID#236)
(cherry picked from commit 47805700f366405a98f905e651aa3e4c625fa541)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b27cd243f05ec2855ae32fceaa43dc5ee3f90a18
---
modules/services_discovery/sap.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/services_discovery/sap.c b/modules/services_discovery/sap.c
index 1d0db59..f7228b4 100644
--- a/modules/services_discovery/sap.c
+++ b/modules/services_discovery/sap.c
@@ -1236,9 +1236,9 @@ static sdp_t *ParseSDP (vlc_object_t *p_obj, const char *psz_sdp)
}
assert (p_sdp->psz_sessionname == NULL); // no memleak here
p_sdp->psz_sessionname = strdup (data);
- EnsureUTF8 (p_sdp->psz_sessionname);
if (p_sdp->psz_sessionname == NULL)
goto error;
+ EnsureUTF8 (p_sdp->psz_sessionname);
break;
}
More information about the vlc-devel
mailing list