mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-17 13:46:56 +08:00
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user