Browse Source

netbuf: correctly reset netbuf checksum for LWIP_CHECKSUM_ON_COPY==1

STABLE-2_1_x
goldsimon 9 years ago
parent
commit
194803a3a7
  1. 4
      src/api/netbuf.c

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

Loading…
Cancel
Save