mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
rtspsrc: check for NULL before doing strcmp
Check the connection and address type for NULL before doing strcmp and crashing. Fixes #612553
This commit is contained in:
parent
2d16c09db8
commit
d29fa60f97
1 changed files with 4 additions and 1 deletions
|
@ -808,7 +808,10 @@ static void
|
|||
gst_rtspsrc_do_stream_connection (GstRTSPSrc * src, GstRTSPStream * stream,
|
||||
const GstSDPConnection * conn)
|
||||
{
|
||||
if (strcmp (conn->nettype, "IN") != 0)
|
||||
if (conn->nettype == NULL || strcmp (conn->nettype, "IN") != 0)
|
||||
return;
|
||||
|
||||
if (conn->addrtype == NULL)
|
||||
return;
|
||||
|
||||
/* check for IPV6 */
|
||||
|
|
Loading…
Reference in a new issue