]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
IPTV: handle NULL ptrs in iptv_http_create_header(), fixes #3328
authorJaroslav Kysela <perex@perex.cz>
Fri, 20 Nov 2015 13:38:11 +0000 (14:38 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 20 Nov 2015 13:38:11 +0000 (14:38 +0100)
src/input/mpegts/iptv/iptv_http.c

index cadbdf7e14d671764900372180e6fa8aefb0d535..3c0553211fe2fc025a712bd6848cdd1ea402706c 100644 (file)
@@ -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);
 }