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:
ben 2006-06-23 22:23:07 +00:00
parent 40f1d3622f
commit 7473a37fcc
1 changed files with 4 additions and 2 deletions

View File

@ -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;
}
/*