From: Jaroslav Kysela Date: Sat, 1 Dec 2018 16:25:05 +0000 (+0100) Subject: opentv: add NULL check to the opentv_find_entry(), fixes #5381 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1daeb9269a029fcde5efd62bd792f1f598ed7a5c;p=thirdparty%2Ftvheadend.git opentv: add NULL check to the opentv_find_entry(), fixes #5381 --- diff --git a/src/epggrab/module/opentv.c b/src/epggrab/module/opentv.c index c8f49d058..62f8ff8e0 100644 --- a/src/epggrab/module/opentv.c +++ b/src/epggrab/module/opentv.c @@ -214,6 +214,7 @@ static opentv_entry_t *opentv_find_entry(opentv_status_t *sta, uint16_t eid) { opentv_entry_t *oe, _tmp; + if (sta == NULL) return NULL; _tmp.event.eid = eid; oe = RB_FIND(&sta->os_entries, &_tmp, link, _entry_cmp); return oe;