From: Jaroslav Kysela Date: Fri, 20 Nov 2015 13:38:11 +0000 (+0100) Subject: IPTV: handle NULL ptrs in iptv_http_create_header(), fixes #3328 X-Git-Tag: v4.2.1~1500 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a26944c0a63f86f51ebfee718e2b227bc5b88ed5;p=thirdparty%2Ftvheadend.git IPTV: handle NULL ptrs in iptv_http_create_header(), fixes #3328 --- diff --git a/src/input/mpegts/iptv/iptv_http.c b/src/input/mpegts/iptv/iptv_http.c index cadbdf7e1..3c0553211 100644 --- a/src/input/mpegts/iptv/iptv_http.c +++ b/src/input/mpegts/iptv/iptv_http.c @@ -489,6 +489,8 @@ iptv_http_create_header { http_priv_t *hp = hc->hc_aux; + if (hp == NULL || hp->im == NULL) + return; http_client_basic_args(hc, h, url, keepalive); http_client_add_args(hc, h, hp->im->mm_iptv_hdr); }