setting tot_len before using it, oops

This commit is contained in:
Sylvain Rochet 2012-06-22 21:43:22 +02:00
parent 1f780e86d5
commit f63b87e28b

View File

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