Fix bug #51507 (Keep uses of SYS_ARCH_PROTECT/UNPROTECT in alloc_socket nested)

This commit is contained in:
goldsimon 2017-07-20 21:18:40 +02:00
parent 99e1f37b82
commit d01b3177fd

View File

@ -461,6 +461,7 @@ alloc_socket(struct netconn *newconn, int accepted)
if (!sockets[i].conn) {
#if LWIP_NETCONN_FULLDUPLEX
if (sockets[i].fd_used) {
SYS_ARCH_UNPROTECT(lev);
continue;
}
sockets[i].fd_used = 1;