mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-03-21 04:20:48 +00:00
setting tot_len before using it, oops
This commit is contained in:
parent
1f780e86d5
commit
f63b87e28b
@ -1288,6 +1288,7 @@ static int ppp_write_over_ethernet(ppp_pcb *pcb, struct pbuf *p) {
|
||||
|
||||
pbuf_header(ph, -(s16_t)PPPOE_HDRLEN); /* hide PPPoE header */
|
||||
pbuf_cat(ph, p);
|
||||
tot_len = ph->tot_len;
|
||||
|
||||
pcb->last_xmit = sys_jiffies();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user