]> git.sesse.net Git - vlc/commitdiff
* Fix a RTSP crash
authorDerk-Jan Hartman <hartman@videolan.org>
Fri, 18 Aug 2006 01:27:00 +0000 (01:27 +0000)
committerDerk-Jan Hartman <hartman@videolan.org>
Fri, 18 Aug 2006 01:27:00 +0000 (01:27 +0000)
modules/demux/live555.cpp

index fdad6e0e810324c21a82f9f0b22d908b9c9581ec..ed7a059685b2df6a7a468f89b24051f0ffb466b3 100644 (file)
@@ -781,7 +781,7 @@ describe:
 
     /* malloc-ated copy */
     if( p_sys->p_sdp ) free( p_sys->p_sdp );
-    p_sys->p_sdp = strdup( (char*)p_sdp );
+    if( p_sdp ) p_sys->p_sdp = strdup( (char*)p_sdp );
     delete[] p_sdp;
 
     return i_ret;