Commit e83c981e authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix remote DoS against the RTSP server when Transport is not specified

parent a4b93717
...@@ -1782,6 +1782,14 @@ static int RtspCallbackId( httpd_callback_sys_t *p_args, ...@@ -1782,6 +1782,14 @@ static int RtspCallbackId( httpd_callback_sys_t *p_args,
case HTTPD_MSG_SETUP: case HTTPD_MSG_SETUP:
{ {
const char *psz_transport = httpd_MsgGet( query, "Transport" ); const char *psz_transport = httpd_MsgGet( query, "Transport" );
if( psz_transport == NULL )
{
answer->i_status = 461;
answer->psz_status = strdup( "Unsupported Transport" );
answer->i_body = 0;
answer->p_body = NULL;
break;
}
//fprintf( stderr, "HTTPD_MSG_SETUP: transport=%s\n", psz_transport ); //fprintf( stderr, "HTTPD_MSG_SETUP: transport=%s\n", psz_transport );
......
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