[MPlayer-cvslog] r18804 - trunk/libmpdemux/librtsp/rtsp.c

ben subversion at mplayerhq.hu
Sat Jun 24 00:23:08 CEST 2006


Author: ben
Date: Sat Jun 24 00:23:07 2006
New Revision: 18804

Modified:
   trunk/libmpdemux/librtsp/rtsp.c

Log:
prevent a buffer overflow to occur at teardown

Modified: trunk/libmpdemux/librtsp/rtsp.c
==============================================================================
--- trunk/libmpdemux/librtsp/rtsp.c	(original)
+++ trunk/libmpdemux/librtsp/rtsp.c	Sat Jun 24 00:23:07 2006
@@ -594,8 +594,10 @@
   }
   rtsp_send_request (s, RTSP_METHOD_TEARDOWN, buf);
   free (buf);
- 
-  return rtsp_get_answers(s);
+
+  /* after teardown we're done with RTSP streaming, no need to get answer as
+     reading more will only result to garbage and buffer overflow */
+  return RTSP_STATUS_OK;
 }
 
 /*



More information about the MPlayer-cvslog mailing list