diff options
Diffstat (limited to 'lwip/src/core/ipv6/ip6_frag.c')
-rw-r--r-- | lwip/src/core/ipv6/ip6_frag.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lwip/src/core/ipv6/ip6_frag.c b/lwip/src/core/ipv6/ip6_frag.c index d6c5d22..8b352f5 100644 --- a/lwip/src/core/ipv6/ip6_frag.c +++ b/lwip/src/core/ipv6/ip6_frag.c @@ -781,7 +781,7 @@ ip6_frag(struct pbuf *p, struct netif *netif, const ip6_addr_t *dest) return ERR_MEM; } LWIP_ASSERT("this needs a pbuf in one piece!", - (p->len >= (IP6_HLEN))); + (rambuf->len >= (IP6_HLEN))); SMEMCPY(rambuf->payload, original_ip6hdr, IP6_HLEN); ip6hdr = (struct ip6_hdr *)rambuf->payload; frag_hdr = (struct ip6_frag_hdr *)((u8_t*)rambuf->payload + IP6_HLEN); |