mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 18:56:10 +08:00
net/rpmsg: set conn->backlog=-1 only when socket listening
Signed-off-by: yintao <yintao@xiaomi.com>
This commit is contained in:
@@ -402,7 +402,7 @@ static inline void rpmsg_socket_destroy_ept(
|
||||
|
||||
if (conn->ept.rdev)
|
||||
{
|
||||
if (conn->backlog)
|
||||
if (conn->backlog > 0)
|
||||
{
|
||||
/* Listen socket */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user