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:
Sylvain Rochet 2015-03-24 23:10:58 +01:00
parent c49fc8db72
commit c8ed013600

View File

@ -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);