From: Jaroslav Kysela Date: Wed, 9 Jan 2019 17:41:16 +0000 (+0100) Subject: otamux: fix NULL dereference, fixes #5488 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e0dd2bee6373156907bde8da7b659948a915e12;p=thirdparty%2Ftvheadend.git otamux: fix NULL dereference, fixes #5488 --- diff --git a/src/epggrab/otamux.c b/src/epggrab/otamux.c index 1a6e6661b..938b1b1b2 100644 --- a/src/epggrab/otamux.c +++ b/src/epggrab/otamux.c @@ -337,9 +337,9 @@ epggrab_ota_start ( epggrab_ota_mux_t *om, mpegts_mux_t *mm ) map->om_complete = 1; } else { tvhdebug(map->om_module->subsys, "%s: grab started", omod->id); + if (!strempty(modname) && omod->handlers) + omod->handlers(map, mm); } - if (!strempty(modname)) - omod->handlers(map, mm); } }