From: Jaroslav Kysela Date: Sun, 11 Dec 2016 19:04:06 +0000 (+0100) Subject: iptv auto: fix NULL dereference issue for tags, fixes #4134 X-Git-Tag: v4.2.1~174 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3654c98e2a376480f16a56daa368c8b8b71b32ed;p=thirdparty%2Ftvheadend.git iptv auto: fix NULL dereference issue for tags, fixes #4134 --- diff --git a/src/input/mpegts/iptv/iptv_auto.c b/src/input/mpegts/iptv/iptv_auto.c index 23607e9de..f17ca0a3d 100644 --- a/src/input/mpegts/iptv/iptv_auto.c +++ b/src/input/mpegts/iptv/iptv_auto.c @@ -241,7 +241,7 @@ skip_url: } if (strcmp(im->mm_iptv_tags ?: "", tags ?: "")) { free(im->mm_iptv_tags); - im->mm_iptv_tags = strdup(tags); + im->mm_iptv_tags = tags ? strdup(tags) : NULL; change = 1; } if (epgcfg >= 0 && im->mm_epg != epgcfg) {