]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
capmt: fix wrong condition in CA_DESCR_MODE
authorJaroslav Kysela <perex@perex.cz>
Fri, 26 May 2017 19:30:02 +0000 (21:30 +0200)
committerJaroslav Kysela <perex@perex.cz>
Fri, 26 May 2017 19:30:02 +0000 (21:30 +0200)
src/descrambler/capmt.c

index 4867d2cca391a1311fa3b012514bb40d5f862b02..7781c81f0fe60380a4ffd229dae5c69a46e9c709 100644 (file)
@@ -1390,7 +1390,7 @@ capmt_analyze_cmd(capmt_t *capmt, int adapter, sbuf_t *sb, int offset)
     }
 
     cai = &capmt->capmt_adapters[adapter].ca_info[index];
-    if (algo != cai->algo && cai->cipher_mode != cipher_mode) {
+    if (algo != cai->algo || cai->cipher_mode != cipher_mode) {
       cai->algo        = algo;
       cai->cipher_mode = cipher_mode;
     }