mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-29 00:32:51 +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);
|
PUTSHORT(cilen + HEADERLEN, outp);
|
||||||
if (cilen != 0) {
|
if (cilen != 0) {
|
||||||
(*f->callbacks->addci)(f, outp, &cilen);
|
(*f->callbacks->addci)(f, outp, &cilen);
|
||||||
|
LWIP_ASSERT("cilen == p->len - HEADERLEN - PPP_HDRLEN", cilen == p->len - HEADERLEN - PPP_HDRLEN);
|
||||||
}
|
}
|
||||||
|
|
||||||
ppp_write(pcb, p);
|
ppp_write(pcb, p);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user