From: Jaroslav Kysela Date: Sat, 7 May 2016 22:22:57 +0000 (+0200) Subject: SAT>IP: fix another enumm NULL pointer dereference (doc) X-Git-Tag: v4.2.1~549 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=693b811146c64645f88ad7ac5581181d40be9cc4;p=thirdparty%2Ftvheadend.git SAT>IP: fix another enumm NULL pointer dereference (doc) --- diff --git a/src/input/mpegts/satip/satip_frontend.c b/src/input/mpegts/satip/satip_frontend.c index 35f716531..073e46915 100644 --- a/src/input/mpegts/satip/satip_frontend.c +++ b/src/input/mpegts/satip/satip_frontend.c @@ -300,9 +300,11 @@ static htsmsg_t * satip_frontend_dvbs_class_master_enum( void * self, const char *lang ) { satip_frontend_t *lfe = self, *lfe2; - satip_device_t *sd = lfe->sf_device; htsmsg_t *m = htsmsg_create_list(); htsmsg_add_str(m, NULL, N_("This tuner")); + if (lfe == NULL) + return m; + satip_device_t *sd = lfe->sf_device; TAILQ_FOREACH(lfe2, &sd->sd_frontends, sf_link) if (lfe2 != lfe && lfe2->sf_type == lfe->sf_type) htsmsg_add_str(m, NULL, lfe2->mi_name);