lwip_recvfrom: fix tcp socket error handling

This commit is contained in:
goldsimon 2017-03-06 22:13:58 +01:00
parent 04bff63f49
commit f02119af62

View File

@ -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;