mirror of
https://github.com/mpv-player/mpv
synced 2025-02-01 20:52:05 +00:00
prevent a buffer overflow to occur at teardown
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18804 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
40f1d3622f
commit
7473a37fcc
@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user