Skip to content

Commit 2459307

Browse files
committed
linuxdvb ca: fix the ca_ops_enquiry checks, fixes #5187
1 parent da1b2dc commit 2459307

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/input/mpegts/linuxdvb/linuxdvb_ca.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,7 @@ static int linuxdvb_ca_ops_enquiry
974974
explen = htsmsg_get_s32_or_default(enq, "explen", 0);
975975
text = htsmsg_get_str(enq, "text");
976976

977-
if (lca->lca_pin_reply &&
977+
if (lca->lca_pin_reply && lca->lca_pin_str && lca->lca_pin_match_str &&
978978
(strlen(lca->lca_pin_str) == explen) &&
979979
strstr(text, lca->lca_pin_match_str)) {
980980
tvhtrace(LS_EN50221, "%s: answering to PIN enquiry", lca->lca_name);

0 commit comments

Comments
 (0)