Browse Source

PPP, MPPE, close current session using lcp_close() if something went wrong

STABLE-2_1_x
Sylvain Rochet 11 years ago
parent
commit
c8db96705f
  1. 3
      src/netif/ppp/mppe.c

3
src/netif/ppp/mppe.c

@ -131,6 +131,7 @@ mppe_init(ppp_pcb *pcb, ppp_mppe_state *state, u8_t options)
else {
PPPDEBUG(LOG_DEBUG, ("%s[%d]: unknown key length\n", debugstr,
pcb->netif->num));
lcp_close(pcb, "MPPE required but peer negotiation failed");
return;
}
if (options & MPPE_OPT_STATEFUL)
@ -312,7 +313,7 @@ mppe_decompress(ppp_pcb *pcb, ppp_mppe_state *state, struct pbuf **pb)
* We don't want to do this for a single or just a few
* instances since it could just be due to packet corruption.
*/
/* FIXME: call lcp_close() here */
lcp_close(pcb, "Too many MPPE errors");
return ERR_BUF;
}

Loading…
Cancel
Save