net/rpmsg: fix the NULL pointer reference on nonblock accept

Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an 2022-02-11 19:45:59 +08:00 committed by Xiang Xiao
parent cafd3e5c48
commit 369f7cc451

View File

@ -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;