Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
cwc: fix AES key handling (broken by previous commit)
  • Loading branch information
perexg committed Feb 25, 2016
1 parent b4b0463 commit eeabcd3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/descrambler/cwc.c
Expand Up @@ -846,7 +846,9 @@ handle_ecm_reply(cwc_service_t *ct, ecm_section_t *es, uint8_t *msg,

es3 = *es;
pthread_mutex_unlock(&cwc->cwc_mutex);
descrambler_keys((th_descrambler_t *)ct, DESCRAMBLER_DES, msg + 3, msg + 3 + off);
descrambler_keys((th_descrambler_t *)ct,
off == 16 ? DESCRAMBLER_AES : DESCRAMBLER_DES,
msg + 3, msg + 3 + off);
snprintf(chaninfo, sizeof(chaninfo), "%s:%i", cwc->cwc_hostname, cwc->cwc_port);
descrambler_notify((th_descrambler_t *)ct,
es3.es_caid, es3.es_provid,
Expand Down

0 comments on commit eeabcd3

Please sign in to comment.