mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-24 15:14:06 +00:00
fuzz: fix compile error, ignore 0 length pbufs
This commit is contained in:
parent
b5448a86fd
commit
e6f0700c81
@ -125,9 +125,11 @@ static void input_pkts(struct netif *netif, const u8_t *data, size_t len)
|
||||
frame_len = htons(frame_len) & 0x7FF;
|
||||
frame_len = LWIP_MIN(frame_len, max_packet_size);
|
||||
if (frame_len > rem_len) {
|
||||
frame_len = rem_len;
|
||||
frame_len = (u16_t)rem_len;
|
||||
}
|
||||
if (frame_len != 0) {
|
||||
input_pkt(netif, ptr, frame_len);
|
||||
}
|
||||
input_pkt(netif, ptr, frame_len);
|
||||
ptr += frame_len;
|
||||
rem_len -= frame_len;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user