From: Jaroslav Kysela Date: Tue, 10 Jun 2014 17:53:51 +0000 (+0200) Subject: capmt: another 'mode 1' fix X-Git-Tag: v4.1~1942 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b808e72a3c4e141987c84bff0c69cd1f41e064d;p=thirdparty%2Ftvheadend.git capmt: another 'mode 1' fix --- diff --git a/src/descrambler/capmt.c b/src/descrambler/capmt.c index 431573e4a..5dda3a9b4 100644 --- a/src/descrambler/capmt.c +++ b/src/descrambler/capmt.c @@ -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);