From 67895e7bddd6e7456c1e5c104ea9b85cc8a01cef Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Wed, 19 Oct 2016 08:36:43 +0200 Subject: [PATCH] Fixup new IPv4 fragmentation code - thanks to Zach Smith --- src/core/ipv4/ip4_frag.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/ipv4/ip4_frag.c b/src/core/ipv4/ip4_frag.c index 9812a085..c1201cda 100644 --- a/src/core/ipv4/ip4_frag.c +++ b/src/core/ipv4/ip4_frag.c @@ -785,7 +785,7 @@ ip4_frag(struct pbuf *p, struct netif *netif, const ip4_addr_t *dest) p = p->next; } } - poff = newpbuflen; + poff += newpbuflen; #endif /* LWIP_NETIF_TX_SINGLE_PBUF */ /* Correct header */