]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
capmt: another 'mode 1' fix
authorJaroslav Kysela <perex@perex.cz>
Tue, 10 Jun 2014 17:53:51 +0000 (19:53 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 10 Jun 2014 17:53:51 +0000 (19:53 +0200)
src/descrambler/capmt.c

index 431573e4a23ab42ce7cccf4f7997805d46b21eb1..5dda3a9b4ad064413844b9eec55d75e8751d6a7c 100644 (file)
@@ -1067,7 +1067,7 @@ handle_ca0(capmt_t *capmt) {
     if (nfds <= 0)
       continue;
 
-    for (i = 0; i < MAX_CA + 1; i++) {
+    for (i = 0; i < nfds; i++) {
 
       if (ev[i].data.u32 == 0) {
         ret = read(capmt->capmt_pipe.rd, buf, 1);