mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 18:56:10 +08:00
net/local: Return the unblock handle correctly in local_accept
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Alin Jerpelea
parent
12cc49df57
commit
75ecbd4382
+1
-1
@@ -146,7 +146,7 @@ int psock_accept(FAR struct socket *psock, FAR struct sockaddr *addr,
|
||||
}
|
||||
|
||||
net_lock();
|
||||
ret = psock->s_sockif->si_accept(psock, addr, addrlen, newsock);
|
||||
ret = psock->s_sockif->si_accept(psock, addr, addrlen, newsock, flags);
|
||||
if (ret >= 0)
|
||||
{
|
||||
/* Mark the new socket as connected. */
|
||||
|
||||
Reference in New Issue
Block a user