]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
cwc: Add missing loop break in the section resolved check
authorJaroslav Kysela <perex@perex.cz>
Fri, 19 Sep 2014 11:57:56 +0000 (13:57 +0200)
committerJaroslav Kysela <perex@perex.cz>
Fri, 19 Sep 2014 11:57:56 +0000 (13:57 +0200)
src/descrambler/cwc.c

index 78c7913bf48fb8d0377170bb0d3db27b4b797a5e..a260cda8c95801dd9e7c88d9e0b9fb358eb8337c 100755 (executable)
@@ -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",