[vlc-devel] commit: live555: fix a potential crash introduced by [ 169ecd7a1037e334fc675c35c64a7d1ef899c9a1] (Derk-Jan Hartman )

git version control git at videolan.org
Tue Sep 9 02:17:00 CEST 2008


vlc | branch: master | Derk-Jan Hartman <hartman at videolan.org> | Tue Sep  9 02:19:22 2008 +0200| [a27681ab5d1b15304048d42d31cebd035903cf4c] | committer: Derk-Jan Hartman 

live555: fix a potential crash introduced by [169ecd7a1037e334fc675c35c64a7d1ef899c9a1]

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a27681ab5d1b15304048d42d31cebd035903cf4c
---

 modules/demux/live555.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/demux/live555.cpp b/modules/demux/live555.cpp
index 9bacc40..fd4d69d 100644
--- a/modules/demux/live555.cpp
+++ b/modules/demux/live555.cpp
@@ -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,




More information about the vlc-devel mailing list