From 3ac7a43c0d330c5b6e685477da574bdac1655b8b Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Fri, 19 Sep 2014 13:57:56 +0200 Subject: [PATCH] cwc: Add missing loop break in the section resolved check --- src/descrambler/cwc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/descrambler/cwc.c b/src/descrambler/cwc.c index 78c7913b..a260cda8 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",