mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 04:56:24 +00:00
sdp: guard against address parse errors.
This commit is contained in:
parent
6954d2167c
commit
4a81605d02
1 changed files with 4 additions and 1 deletions
|
@ -436,7 +436,10 @@ gst_sdp_address_is_multicast (const gchar * nettype, const gchar * addrtype,
|
||||||
if (nettype && strcmp (nettype, "IN") != 0)
|
if (nettype && strcmp (nettype, "IN") != 0)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
iaddr = g_inet_address_new_from_string (addr);
|
/* guard against parse failures */
|
||||||
|
if ((iaddr = g_inet_address_new_from_string (addr)) == NULL)
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
ret = g_inet_address_get_is_multicast (iaddr);
|
ret = g_inet_address_get_is_multicast (iaddr);
|
||||||
g_object_unref (iaddr);
|
g_object_unref (iaddr);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue