From: Jaroslav Kysela Date: Tue, 5 Jan 2016 16:37:21 +0000 (+0100) Subject: SAT>IP server: fix wrong memory access X-Git-Tag: v4.2.1~1212 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a69523c92dd76d5d7e36f8f5f20cfbf5842e7599;p=thirdparty%2Ftvheadend.git SAT>IP server: fix wrong memory access --- diff --git a/src/satip/rtsp.c b/src/satip/rtsp.c index fcb695ab6..efdfb5192 100644 --- a/src/satip/rtsp.c +++ b/src/satip/rtsp.c @@ -1482,8 +1482,7 @@ rtsp_flush_requests(http_connection_t *hc) if (rs->shutdown_on_close == hc) { rtsp_close_session(rs); rtsp_free_session(rs); - } - if (rs->tcp_data == hc) { + } else if (rs->tcp_data == hc) { satip_rtp_close((void *)(intptr_t)rs->stream); rs->tcp_data = NULL; }