From: Derk-Jan Hartman Date: Fri, 18 Aug 2006 01:27:00 +0000 (+0000) Subject: * Fix a RTSP crash X-Git-Tag: 0.9.0-test0~10627 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=ba747c38b9314255f838c88d0eee6c9b6dbb2ad3;p=vlc * Fix a RTSP crash --- diff --git a/modules/demux/live555.cpp b/modules/demux/live555.cpp index fdad6e0e81..ed7a059685 100644 --- a/modules/demux/live555.cpp +++ b/modules/demux/live555.cpp @@ -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;