From 693b811146c64645f88ad7ac5581181d40be9cc4 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Sun, 8 May 2016 00:22:57 +0200 Subject: [PATCH] SAT>IP: fix another enumm NULL pointer dereference (doc) --- src/input/mpegts/satip/satip_frontend.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.47.3