From ba747c38b9314255f838c88d0eee6c9b6dbb2ad3 Mon Sep 17 00:00:00 2001 From: Derk-Jan Hartman Date: Fri, 18 Aug 2006 01:27:00 +0000 Subject: [PATCH] * Fix a RTSP crash --- modules/demux/live555.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2