Commit 944b1484 authored by Pierre Ynard's avatar Pierre Ynard

vod_rtsp: fix segfault if memory allocation fails

Fix segfault if memory allocation fails
parent e348132d
......@@ -1423,6 +1423,13 @@ static int RtspCallbackES( httpd_callback_sys_t *p_args, httpd_client_t *cl,
psz_session = psz_new;
p_rtsp = RtspClientNew( p_media, psz_new );
if( !p_rtsp )
{
answer->i_status = 454;
answer->i_body = 0;
answer->p_body = NULL;
break;
}
}
else
{
......
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