From: Jaroslav Kysela Date: Thu, 19 Nov 2015 15:17:13 +0000 (+0100) Subject: IPTV: HLS parser - fix NULL dereference X-Git-Tag: v4.2.1~1508 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=62a3f7288afde6de0b5bc91a3c948d4729ffa79c;p=thirdparty%2Ftvheadend.git IPTV: HLS parser - fix NULL dereference --- diff --git a/src/input/mpegts/iptv/iptv_http.c b/src/input/mpegts/iptv/iptv_http.c index dd5ade101..0a14227c5 100644 --- a/src/input/mpegts/iptv/iptv_http.c +++ b/src/input/mpegts/iptv/iptv_http.c @@ -210,7 +210,7 @@ iptv_http_data pthread_mutex_lock(&iptv_lock); - if (dispatch_clock != hp->hls_last_si) { + if (dispatch_clock != hp->hls_last_si && hp->hls_si) { /* do rounding to next MPEG-TS packet */ rem = 188 - (hp->off % 188); if (rem < 188) {