mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-05 08:28:32 +00:00
tcpecho_raw: fix bogus pbuf_free on error
This commit is contained in:
parent
4c19a909c2
commit
3e59b224fa
@ -212,9 +212,7 @@ tcpecho_raw_recv(void *arg, struct tcp_pcb *tpcb, struct pbuf *p, err_t err)
|
|||||||
ret_err = ERR_OK;
|
ret_err = ERR_OK;
|
||||||
} else if(err != ERR_OK) {
|
} else if(err != ERR_OK) {
|
||||||
/* cleanup, for unknown reason */
|
/* cleanup, for unknown reason */
|
||||||
if (p != NULL) {
|
LWIP_ASSERT("no pbuf expected here", p == NULL);
|
||||||
pbuf_free(p);
|
|
||||||
}
|
|
||||||
ret_err = err;
|
ret_err = err;
|
||||||
}
|
}
|
||||||
else if(es->state == ES_ACCEPTED) {
|
else if(es->state == ES_ACCEPTED) {
|
||||||
|
Loading…
Reference in New Issue
Block a user