Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
cwc: Add missing loop break in the section resolved check
  • Loading branch information
perexg committed Sep 19, 2014
1 parent 8b1ce06 commit 3ac7a43
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/descrambler/cwc.c
Expand Up @@ -795,11 +795,14 @@ handle_ecm_reply(cwc_service_t *ct, ecm_section_t *es, uint8_t *msg,
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",
Expand Down

0 comments on commit 3ac7a43

Please sign in to comment.