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

Merges https://github.com/espressif/esp-idf/pull/903
This commit is contained in:
Stephen Casner 2017-08-11 14:06:06 -07:00 committed by Angus Gratton
parent 8c1acb0363
commit 1e3dd2a4fa

View file

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