net/rpmsg: fix the NULL pointer reference on nonblock accept
Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
parent
cafd3e5c48
commit
369f7cc451
@ -786,7 +786,7 @@ static int rpmsg_socket_accept(FAR struct socket *psock,
|
||||
}
|
||||
else
|
||||
{
|
||||
if (_SS_ISNONBLOCK(conn->sconn.s_flags))
|
||||
if (_SS_ISNONBLOCK(server->sconn.s_flags))
|
||||
{
|
||||
ret = -EAGAIN;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user