mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-17 17:10:03 +00:00
PPP, FSM, added assert to easily track cilen size mismatch
See c49fc8d
for such a problem which ends up with heap corruption.
This commit is contained in:
parent
c49fc8db72
commit
c8ed013600
@ -751,6 +751,7 @@ static void fsm_sconfreq(fsm *f, int retransmit) {
|
||||
PUTSHORT(cilen + HEADERLEN, outp);
|
||||
if (cilen != 0) {
|
||||
(*f->callbacks->addci)(f, outp, &cilen);
|
||||
LWIP_ASSERT("cilen == p->len - HEADERLEN - PPP_HDRLEN", cilen == p->len - HEADERLEN - PPP_HDRLEN);
|
||||
}
|
||||
|
||||
ppp_write(pcb, p);
|
||||
|
Loading…
Reference in New Issue
Block a user