]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
linuxdvb ca: fix the ca_ops_enquiry checks, fixes #5187
authorJaroslav Kysela <perex@perex.cz>
Tue, 4 Sep 2018 11:10:19 +0000 (13:10 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 4 Sep 2018 11:10:19 +0000 (13:10 +0200)
src/input/mpegts/linuxdvb/linuxdvb_ca.c

index c9b13c8f85c098241bfd83592240d3252018cf4b..005d4b6bfc18989d3e9b2c28eccb938364f5a1c4 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 &&
+  if (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);