mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-24 15:14:06 +00:00
Fixes bug #13807: slipif_input() garbles large (i.e. multiple pbufs) inbound datagrams.
This commit is contained in:
parent
baf377679a
commit
e11d57c883
@ -32,8 +32,8 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* This is an arch independent SLIP netif. The specific serial hooks must be provided
|
||||
* by another file.They are sio_open, sio_recv and sio_send
|
||||
* This is an arch independent SLIP netif. The specific serial hooks must be
|
||||
* provided by another file. They are sio_open, sio_recv and sio_send
|
||||
*/
|
||||
|
||||
#include "netif/slipif.h"
|
||||
@ -156,6 +156,9 @@ slipif_input( struct netif * netif )
|
||||
i++;
|
||||
if (i >= p->len) {
|
||||
i = 0;
|
||||
if (p->next != NULL && p->next->len > 0)
|
||||
p = p->next;
|
||||
else
|
||||
p = NULL;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user