diff --git a/net/local/local_listen.c b/net/local/local_listen.c index 409bf1c336..9ab91536ca 100644 --- a/net/local/local_listen.c +++ b/net/local/local_listen.c @@ -96,7 +96,11 @@ int local_listen(FAR struct socket *psock, int backlog) /* Set the backlog value */ - DEBUGASSERT((unsigned)backlog < 256); + if (backlog > 255) + { + backlog = 255; + } + server->u.server.lc_backlog = backlog; /* Is this the first time since being bound to an address and that