]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
SAT>IP server: fix wrong memory access
authorJaroslav Kysela <perex@perex.cz>
Tue, 5 Jan 2016 16:37:21 +0000 (17:37 +0100)
committerJaroslav Kysela <perex@perex.cz>
Tue, 5 Jan 2016 16:37:21 +0000 (17:37 +0100)
src/satip/rtsp.c

index fcb695ab638b46203f9a48889a182c35683cc0b2..efdfb51922f1836f7fde6f4f08d1730203d1e474 100644 (file)
@@ -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;
     }