net/local: Return the unblock handle correctly in local_accept

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2023-03-07 01:38:39 +08:00
committed by Alin Jerpelea
parent 12cc49df57
commit 75ecbd4382
8 changed files with 19 additions and 13 deletions
+1 -1
View File
@@ -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. */