Add missing debug log message for out-of-sockets case

Merges https://github.com/espressif/esp-idf/pull/903
pull/928/merge
Stephen Casner 2017-08-11 14:06:06 -07:00 zatwierdzone przez Angus Gratton
rodzic 8c1acb0363
commit 1e3dd2a4fa
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -1501,6 +1501,7 @@ lwip_socket(int domain, int type, int protocol)
i = alloc_socket(conn, 0);
if (i == -1) {
LWIP_DEBUGF(SOCKETS_DEBUG, ("-1 / ENFILE (could not allocate socket)\n"));
netconn_delete(conn);
set_errno(ENFILE);
return -1;