mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-25 07:33:11 +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);
|
||||
}
|
||||
buf->p = buf->ptr = NULL;
|
||||
#if LWIP_CHECKSUM_ON_COPY
|
||||
buf->flags = 0;
|
||||
buf->toport_chksum = 0;
|
||||
#endif /* LWIP_CHECKSUM_ON_COPY */
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user