diff --git a/modules/stream_out/rtp.c b/modules/stream_out/rtp.c index 26383b55da..68f36d4e94 100644 --- a/modules/stream_out/rtp.c +++ b/modules/stream_out/rtp.c @@ -1340,6 +1340,15 @@ static int RtspCallbackId( httpd_callback_sys_t *p_args, rtsp_client_t *rtsp = NULL; + if( ip == NULL ) + { + answer->i_status = 400; + answer->psz_status = strdup( "Internal server error" ); + answer->i_body = 0; + answer->p_body = NULL; + break; + } + fprintf( stderr, "HTTPD_MSG_SETUP: unicast ip=%s port=%d\n", ip, i_port );