Fix bug #51507 (Keep uses of SYS_ARCH_PROTECT/UNPROTECT in alloc_socket nested)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user