mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
PPP, MPPE, close current session using lcp_close() if something went wrong
This commit is contained in:
parent
f94efab6c3
commit
c8db96705f
@ -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…
Reference in New Issue
Block a user