pbuf_free() assert triggered by NULLified inseg.p. Reported by Karl Jeacle on 25-7-2004 on lwip-users.

This commit is contained in:
likewise 2004-07-25 23:17:07 +00:00
parent eb69032773
commit c2abae538b

View File

@ -351,7 +351,7 @@ tcp_input(struct pbuf *p, struct netif *inp)
increase the reference counter in the pbuf. If so, the buffer increase the reference counter in the pbuf. If so, the buffer
isn't actually deallocated by the call to pbuf_free(), only the isn't actually deallocated by the call to pbuf_free(), only the
reference count is decreased. */ reference count is decreased. */
pbuf_free(inseg.p); if (inseg.p != NULL) pbuf_free(inseg.p);
#if TCP_INPUT_DEBUG #if TCP_INPUT_DEBUG
#if TCP_DEBUG #if TCP_DEBUG
tcp_debug_print_state(pcb->state); tcp_debug_print_state(pcb->state);