diff --git a/src/api/netbuf.c b/src/api/netbuf.c index eb250115..3e87178e 100644 --- a/src/api/netbuf.c +++ b/src/api/netbuf.c @@ -131,6 +131,10 @@ netbuf_free(struct netbuf *buf) pbuf_free(buf->p); } buf->p = buf->ptr = NULL; +#if LWIP_CHECKSUM_ON_COPY + buf->flags = 0; + buf->toport_chksum = 0; +#endif /* LWIP_CHECKSUM_ON_COPY */ } /**