netbuf: correctly reset netbuf checksum for LWIP_CHECKSUM_ON_COPY==1
This commit is contained in:
@@ -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 */
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user