PPP, MPPE, don't issue CCP reset request in stateless mode

This is useless, flushed bit is always true in stateless mode, we
don't need to issue a CCP reset request in this case.
This commit is contained in:
Sylvain Rochet 2015-04-26 22:13:11 +02:00
parent 8fe2f747f4
commit 900f3c9a09

View File

@ -332,6 +332,7 @@ mppe_decompress(ppp_pcb *pcb, ppp_mppe_state *state, struct pbuf **pb)
* Signal the peer to rekey (by sending a CCP Reset-Request).
*/
state->discard = 1;
ccp_resetrequest(pcb);
return ERR_BUF;
}
} else {
@ -382,10 +383,7 @@ mppe_decompress(ppp_pcb *pcb, ppp_mppe_state *state, struct pbuf **pb)
return ERR_OK;
sanity_error:
if (state->sanity_errors < SANITY_MAX) {
/* Signal the peer to rekey (by sending a CCP Reset-Request). */
ccp_resetrequest(pcb);
} else {
if (state->sanity_errors >= SANITY_MAX) {
/*
* Take LCP down if the peer is sending too many bogons.
* We don't want to do this for a single or just a few