PPP, CCP, re-added missing ccp_test()

ccp_test() is not only used to test kernel support, but also to set MPPE keys,
we will change that further, but for now, re-add the necessary ccp_test()
This commit is contained in:
Sylvain Rochet 2015-04-17 23:21:13 +02:00
parent caf9fc5687
commit 489760d2e3

View File

@ -730,6 +730,8 @@ static void ccp_addci(fsm *f, u_char *p, int *lenp) {
MPPE_OPTS_TO_CI(go->mppe, &p[2]);
MPPE_OPTS_TO_CI(go->mppe, &opt_buf[2]);
MEMCPY(&opt_buf[CILEN_MPPE], mppe_recv_key, MPPE_MAX_KEY_LEN);
/* ccp_test() can't fail, we've already tested it! */
ccp_test(pcb, opt_buf, CILEN_MPPE + MPPE_MAX_KEY_LEN, 0);
p += CILEN_MPPE;
}
#endif /* MPPE_SUPPORT */