kopia lustrzana https://github.com/espressif/esp-idf
Merge branch 'bugfix/lwip_socket_leak_accept_enfile' into 'master'
lwip: Fix leak when accept() fails due to max socket limit See merge request idf/esp-idf!2585pull/2140/head
commit
6d1995b9d2
|
@ -139,7 +139,7 @@ netconn_new_with_proto_and_callback(enum netconn_type t, u8_t proto, netconn_cal
|
|||
static inline bool is_created_by_socket(struct netconn *conn)
|
||||
{
|
||||
#if LWIP_SOCKET
|
||||
if (conn && (conn->socket != -1)) {
|
||||
if (conn && (conn->socket >= 0)) {
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
|
Ładowanie…
Reference in New Issue