bug-fix in the TCP_EVENT_RECV macro (has to call tcp_recved if pcb->recv is NULL to keep rcv_wnd correct)

This commit is contained in:
goldsimon 2009-10-25 18:47:44 +00:00
parent 650f16b6d9
commit bcc87ef851
2 changed files with 7 additions and 1 deletions

View File

@ -43,6 +43,10 @@ HISTORY
++ Bugfixes:
2009-10-25: Simon Goldschmidt
* tcp.h: bug-fix in the TCP_EVENT_RECV macro (has to call tcp_recved if
pcb->recv is NULL to keep rcv_wnd correct)
2009-10-25: Simon Goldschmidt
* tcp_in.c: Fixed bug #26251: RST process in TIME_WAIT TCP state

View File

@ -489,8 +489,10 @@ err_t lwip_tcp_event(void *arg, struct tcp_pcb *pcb,
(ret) = (pcb)->recv((pcb)->callback_arg,(pcb),(p),(err)); \
} else { \
(ret) = ERR_OK; \
if (p != NULL) \
if (p != NULL) { \
tcp_recved((pcb), ((struct pbuf*)(p))->tot_len); \
pbuf_free(p); \
} \
} \
} while (0)