]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
opentv: add NULL check to the opentv_find_entry(), fixes #5381
authorJaroslav Kysela <perex@perex.cz>
Sat, 1 Dec 2018 16:25:05 +0000 (17:25 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sat, 1 Dec 2018 16:25:05 +0000 (17:25 +0100)
src/epggrab/module/opentv.c

index c8f49d058f9c6da5715c8a198a7a4f77cc3295ac..62f8ff8e0bc34c647c1fb77bf941588d4fa7fd41 100644 (file)
@@ -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;