From 489760d2e3d61a21e71705a3fd6d658b140deec3 Mon Sep 17 00:00:00 2001 From: Sylvain Rochet Date: Fri, 17 Apr 2015 23:21:13 +0200 Subject: [PATCH] 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() --- src/netif/ppp/ccp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/netif/ppp/ccp.c b/src/netif/ppp/ccp.c index fb3ba1f0..f88cc65b 100644 --- a/src/netif/ppp/ccp.c +++ b/src/netif/ppp/ccp.c @@ -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 */