From: Jaroslav Kysela Date: Fri, 19 Sep 2014 11:57:56 +0000 (+0200) Subject: cwc: Add missing loop break in the section resolved check X-Git-Tag: v4.1~1308 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3ac7a43c0d330c5b6e685477da574bdac1655b8b;p=thirdparty%2Ftvheadend.git cwc: Add missing loop break in the section resolved check --- diff --git a/src/descrambler/cwc.c b/src/descrambler/cwc.c index 78c7913bf..a260cda8c 100755 --- a/src/descrambler/cwc.c +++ b/src/descrambler/cwc.c @@ -795,11 +795,14 @@ forbid: return; es->es_keystate = ES_FORBIDDEN; - LIST_FOREACH(ep, &ct->cs_pids, ep_link) + LIST_FOREACH(ep, &ct->cs_pids, ep_link) { LIST_FOREACH(es2, &ep->ep_sections, es_link) if (es2->es_keystate == ES_UNKNOWN || es2->es_keystate == ES_RESOLVED) break; + if (es2) + break; + } if (ep == NULL) { /* !UNKNOWN && !RESOLVED */ tvhlog(LOG_ERR, "cwc",