mirror of
https://github.com/espressif/esp-lwip.git
synced 2025-08-06 18:23:42 +08:00
pppos: fix in_tail null
happens during quick reconnect of LTE ppp session
This commit is contained in:
@ -537,6 +537,12 @@ pppos_input(ppp_pcb *ppp, u8_t *s, int l)
|
|||||||
/* Note: If you get lots of these, check for UART frame errors or try different baud rate */
|
/* Note: If you get lots of these, check for UART frame errors or try different baud rate */
|
||||||
LINK_STATS_INC(link.chkerr);
|
LINK_STATS_INC(link.chkerr);
|
||||||
pppos_input_drop(pppos);
|
pppos_input_drop(pppos);
|
||||||
|
} else if (!pppos->in_tail) {
|
||||||
|
PPPDEBUG(LOG_INFO,
|
||||||
|
("pppos_input[%d]: Dropping null in_tail\n",
|
||||||
|
ppp->netif->num));
|
||||||
|
LINK_STATS_INC(link.drop);
|
||||||
|
pppos_input_drop(pppos);
|
||||||
/* Otherwise it's a good packet so pass it on. */
|
/* Otherwise it's a good packet so pass it on. */
|
||||||
} else {
|
} else {
|
||||||
struct pbuf *inp;
|
struct pbuf *inp;
|
||||||
|
Reference in New Issue
Block a user