mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 21:14:09 +00:00
Fix bug #51507 (Keep uses of SYS_ARCH_PROTECT/UNPROTECT in alloc_socket nested)
This commit is contained in:
parent
99e1f37b82
commit
d01b3177fd
@ -461,6 +461,7 @@ alloc_socket(struct netconn *newconn, int accepted)
|
|||||||
if (!sockets[i].conn) {
|
if (!sockets[i].conn) {
|
||||||
#if LWIP_NETCONN_FULLDUPLEX
|
#if LWIP_NETCONN_FULLDUPLEX
|
||||||
if (sockets[i].fd_used) {
|
if (sockets[i].fd_used) {
|
||||||
|
SYS_ARCH_UNPROTECT(lev);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
sockets[i].fd_used = 1;
|
sockets[i].fd_used = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user