diff options
author | ben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-06-23 22:23:07 +0000 |
---|---|---|
committer | ben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-06-23 22:23:07 +0000 |
commit | 7473a37fcc8e9e191f1ff2efe3239ec95fe49319 (patch) | |
tree | f2ce547ca8265b3f1380015483a1ca6d6159d848 /libmpdemux | |
parent | 40f1d3622fc7442a35d96b8a3857c5325510735b (diff) | |
download | mpv-7473a37fcc8e9e191f1ff2efe3239ec95fe49319.tar.bz2 mpv-7473a37fcc8e9e191f1ff2efe3239ec95fe49319.tar.xz |
prevent a buffer overflow to occur at teardown
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18804 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/librtsp/rtsp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libmpdemux/librtsp/rtsp.c b/libmpdemux/librtsp/rtsp.c index 27d9dd37a5..131f2045f0 100644 --- a/libmpdemux/librtsp/rtsp.c +++ b/libmpdemux/librtsp/rtsp.c @@ -594,8 +594,10 @@ int rtsp_request_teardown(rtsp_t *s, const char *what) { } 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; } /* |