mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-30 03:32:50 +00:00
netbuf: correctly reset netbuf checksum for LWIP_CHECKSUM_ON_COPY==1
This commit is contained in:
parent
c6c693923e
commit
194803a3a7
@ -131,6 +131,10 @@ netbuf_free(struct netbuf *buf)
|
|||||||
pbuf_free(buf->p);
|
pbuf_free(buf->p);
|
||||||
}
|
}
|
||||||
buf->p = buf->ptr = NULL;
|
buf->p = buf->ptr = NULL;
|
||||||
|
#if LWIP_CHECKSUM_ON_COPY
|
||||||
|
buf->flags = 0;
|
||||||
|
buf->toport_chksum = 0;
|
||||||
|
#endif /* LWIP_CHECKSUM_ON_COPY */
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user