mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-27 06:14:09 +00:00
lwip_recvfrom: fix tcp socket error handling
This commit is contained in:
parent
04bff63f49
commit
f02119af62
@ -987,6 +987,8 @@ lwip_recvfrom(int s, void *mem, size_t len, int flags,
|
|||||||
lwip_sock_make_addr(sock->conn, &tmpaddr, port, from, fromlen);
|
lwip_sock_make_addr(sock->conn, &tmpaddr, port, from, fromlen);
|
||||||
LWIP_DEBUGF(SOCKETS_DEBUG, (" len=%d\n", ret));
|
LWIP_DEBUGF(SOCKETS_DEBUG, (" len=%d\n", ret));
|
||||||
}
|
}
|
||||||
|
done_socket(sock);
|
||||||
|
return ret;
|
||||||
} else {
|
} else {
|
||||||
struct netbuf *buf;
|
struct netbuf *buf;
|
||||||
u16_t buflen, copylen;
|
u16_t buflen, copylen;
|
||||||
|
Loading…
Reference in New Issue
Block a user