diff options
Diffstat (limited to 'stream/librtsp/rtsp_session.c')
-rw-r--r-- | stream/librtsp/rtsp_session.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/stream/librtsp/rtsp_session.c b/stream/librtsp/rtsp_session.c index 6d440e06a4..8aaace4a01 100644 --- a/stream/librtsp/rtsp_session.c +++ b/stream/librtsp/rtsp_session.c @@ -209,6 +209,7 @@ int rtsp_session_read (rtsp_session_t *this, char *data, int len) { int fill = this->real_session->recv_size - this->real_session->recv_read; if (len < 0) return 0; + if (this->real_session->recv_size < 0) return -1; while (to_copy > fill) { memcpy(dest, source, fill); |