Commit 47805700 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix NULL dereference (CID#236)

parent 544eea4e
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment