]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
linuxdvb ca: another fix for the PIN enquiry, fixes #5187, fixes #5191
authorJaroslav Kysela <perex@perex.cz>
Thu, 6 Sep 2018 14:26:59 +0000 (16:26 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 6 Sep 2018 14:26:59 +0000 (16:26 +0200)
src/input/mpegts/linuxdvb/linuxdvb_ca.c

index 005d4b6bfc18989d3e9b2c28eccb938364f5a1c4..1a495bc40d184cc2e077323136b90c7b5c3c5c9a 100644 (file)
@@ -974,7 +974,7 @@ static int linuxdvb_ca_ops_enquiry
   explen = htsmsg_get_s32_or_default(enq, "explen", 0);
   text = htsmsg_get_str(enq, "text");
 
-  if (lca->lca_pin_reply && lca->lca_pin_str && lca->lca_pin_match_str &&
+  if (text && lca->lca_pin_reply && lca->lca_pin_str && lca->lca_pin_match_str &&
       (strlen(lca->lca_pin_str) == explen) &&
        strstr(text, lca->lca_pin_match_str)) {
     tvhtrace(LS_EN50221, "%s: answering to PIN enquiry", lca->lca_name);