netbuf: correctly reset netbuf checksum for LWIP_CHECKSUM_ON_COPY==1

This commit is contained in:
goldsimon 2017-03-07 20:37:06 +01:00
parent c6c693923e
commit 194803a3a7

View File

@ -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 */
}
/**