]> git.sesse.net Git - vlc/commitdiff
live555: fix a potential crash introduced by [169ecd7a1037e334fc675c35c64a7d1ef899c9a1]
authorDerk-Jan Hartman <hartman@videolan.org>
Tue, 9 Sep 2008 00:19:22 +0000 (02:19 +0200)
committerDerk-Jan Hartman <hartman@videolan.org>
Tue, 9 Sep 2008 00:20:21 +0000 (02:20 +0200)
modules/demux/live555.cpp

index 9bacc40a09d428ebacb9449200468fafc874ff23..fd4d69d9b7259244ba926f78d82929529c156df4 100644 (file)
@@ -548,7 +548,8 @@ describe:
 
     psz_options = p_sys->rtsp->sendOptionsCmd( psz_url, psz_user, psz_pwd,
                                                &authenticator );
-    p_sys->b_get_param = strstr( psz_options, "GET_PARAMETER" ) ? true : false ;
+    if( psz_options )
+        p_sys->b_get_param = strstr( psz_options, "GET_PARAMETER" ) ? true : false ;
     delete [] psz_options;
 
     p_sdp = p_sys->rtsp->describeURL( psz_url, &authenticator,