mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 03:16:18 +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_DEBUGF(SOCKETS_DEBUG, (" len=%d\n", ret));
|
||||
}
|
||||
done_socket(sock);
|
||||
return ret;
|
||||
} else {
|
||||
struct netbuf *buf;
|
||||
u16_t buflen, copylen;
|
||||
|
Loading…
Reference in New Issue
Block a user