]> git.sesse.net Git - vlc/commitdiff
Fix the exact same remote DoS as in RTSP stream output
authorRémi Denis-Courmont <rem@videolan.org>
Wed, 5 Sep 2007 19:24:52 +0000 (19:24 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Wed, 5 Sep 2007 19:24:52 +0000 (19:24 +0000)
(SETUP without Transport:)

modules/misc/rtsp.c

index b80e03b8005e1e5d552a6165c8e54a84bdded5b7..c1f6800794fb05b202a0fed0e81637540f3b3c48 100644 (file)
@@ -924,6 +924,11 @@ static int RtspCallback( httpd_callback_sys_t *p_args, httpd_client_t *cl,
         {
             psz_playnow = httpd_MsgGet( query, "x-playNow" );
             psz_transport = httpd_MsgGet( query, "Transport" );
+            if( psz_transport == NULL )
+            {
+                answer->i_status = 400;
+                break;
+            }
             msg_Dbg( p_vod, "HTTPD_MSG_SETUP: transport=%s", psz_transport );
 
             if( strstr( psz_transport, "unicast" ) &&