Commit 7499dd6b authored by Pierre Ynard's avatar Pierre Ynard

vod_rtsp: fix segfault if memory allocation fails

Fix segfault if memory allocation fails
(cherry picked from commit 944b1484)
parent 446a5442
......@@ -1424,6 +1424,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