[vlc-devel] commit: Fix NULL dereference (CID#236) ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Oct 5 16:15:19 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Oct 5 17:15:00 2008 +0300| [47805700f366405a98f905e651aa3e4c625fa541] | committer: Rémi Denis-Courmont
Fix NULL dereference (CID#236)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=47805700f366405a98f905e651aa3e4c625fa541
---
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 cef1578..d9ca9b4 100644
--- a/modules/services_discovery/sap.c
+++ b/modules/services_discovery/sap.c
@@ -1246,9 +1246,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