|
|
|
|
@ -358,6 +358,8 @@ tcp_enqueue(struct tcp_pcb *pcb, void *arg, u16_t len,
|
|
|
|
|
/* free the first (header-only) pbuf if it is now empty (contained only headers) */ |
|
|
|
|
struct pbuf *old_q = queue->p; |
|
|
|
|
queue->p = queue->p->next; |
|
|
|
|
old_q->next = NULL; |
|
|
|
|
queuelen--; |
|
|
|
|
pbuf_free(old_q); |
|
|
|
|
} |
|
|
|
|
LWIP_ASSERT("zero-length pbuf", (queue->p != NULL) && (queue->p->len > 0)); |
|
|
|
|
|