When doing a port scan (e.g. with nmap) the call to GST_RTSP_CHECK()
will sometimes fail. This call is made before any context is pushed
resulting in an attempt to pop a NULL context.
https://bugzilla.gnome.org/show_bug.cgi?id=757949
manage_client (server, client);
} else {
GST_WARNING_OBJECT (server, "received unknown event %08x", condition);
+ goto exit_no_ctx;
}
exit:
gst_rtsp_context_pop_current (&ctx);
+exit_no_ctx:
return G_SOURCE_CONTINUE;
GST_ERROR_OBJECT (server, "Could not accept client on socket %p: %s",
socket, str);
g_free (str);
- goto exit;
+ /* We haven't pushed the context yet, so just return */
+ goto exit_no_ctx;
}
connection_refused:
{