mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-19 05:10:40 +00:00
ip6: Fix incorrect assert in ip6_frag()
New test case now passes. Fixes bug #57374 (Found by Hiromasa Ito).
This commit is contained in:
parent
e8b0c52806
commit
d876d3c4df
@ -781,7 +781,7 @@ ip6_frag(struct pbuf *p, struct netif *netif, const ip6_addr_t *dest)
|
|||||||
return ERR_MEM;
|
return ERR_MEM;
|
||||||
}
|
}
|
||||||
LWIP_ASSERT("this needs a pbuf in one piece!",
|
LWIP_ASSERT("this needs a pbuf in one piece!",
|
||||||
(p->len >= (IP6_HLEN)));
|
(rambuf->len >= (IP6_HLEN)));
|
||||||
SMEMCPY(rambuf->payload, original_ip6hdr, IP6_HLEN);
|
SMEMCPY(rambuf->payload, original_ip6hdr, IP6_HLEN);
|
||||||
ip6hdr = (struct ip6_hdr *)rambuf->payload;
|
ip6hdr = (struct ip6_hdr *)rambuf->payload;
|
||||||
frag_hdr = (struct ip6_frag_hdr *)((u8_t*)rambuf->payload + IP6_HLEN);
|
frag_hdr = (struct ip6_frag_hdr *)((u8_t*)rambuf->payload + IP6_HLEN);
|
||||||
|
Loading…
Reference in New Issue
Block a user