sdp: guard against address parse errors.

This commit is contained in:
Wim Taymans 2014-04-08 15:43:50 +02:00
parent 6954d2167c
commit 4a81605d02

View file

@ -436,7 +436,10 @@ gst_sdp_address_is_multicast (const gchar * nettype, const gchar * addrtype,
if (nettype && strcmp (nettype, "IN") != 0)
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);
g_object_unref (iaddr);