From 537c69d573f386befef0684c90cf5c9ffafd0510 Mon Sep 17 00:00:00 2001 From: Peter Putz Date: Wed, 11 Nov 2020 12:21:01 +0100 Subject: [PATCH] pppos: fix in_tail null happens during quick reconnect of LTE ppp session --- src/netif/ppp/pppos.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/netif/ppp/pppos.c b/src/netif/ppp/pppos.c index 44dcaf77..d2ee51e3 100644 --- a/src/netif/ppp/pppos.c +++ b/src/netif/ppp/pppos.c @@ -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 */ LINK_STATS_INC(link.chkerr); 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. */ } else { struct pbuf *inp;