[MPlayer-cvslog] r29621 - trunk/stream/realrtsp/real.c
reimar
subversion at mplayerhq.hu
Wed Sep 2 12:22:08 CEST 2009
Author: reimar
Date: Wed Sep 2 12:22:08 2009
New Revision: 29621
Log:
Make sure we do not strdup(NULL), avoids a crash with non-real streams.
Modified:
trunk/stream/realrtsp/real.c
Modified: trunk/stream/realrtsp/real.c
==============================================================================
--- trunk/stream/realrtsp/real.c Wed Sep 2 12:20:45 2009 (r29620)
+++ trunk/stream/realrtsp/real.c Wed Sep 2 12:22:08 2009 (r29621)
@@ -441,7 +441,10 @@ rmff_header_t *real_setup_and_get_header
int i;
/* get challenge */
- challenge1=strdup(rtsp_search_answers(rtsp_session,"RealChallenge1"));
+ challenge1=rtsp_search_answers(rtsp_session,"RealChallenge1");
+ if (!challenge1)
+ goto out;
+ challenge1=strdup(challenge1);
#ifdef LOG
printf("real: Challenge1: %s\n", challenge1);
#endif
More information about the MPlayer-cvslog
mailing list