mirror of
https://github.com/apache/nuttx.git
synced 2026-08-07 13:37:18 +00:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue