diff --git a/net/inet/inet_sockif.c b/net/inet/inet_sockif.c index 7a71ff91ba..1897214633 100644 --- a/net/inet/inet_sockif.c +++ b/net/inet/inet_sockif.c @@ -830,7 +830,7 @@ static int inet_accept(FAR struct socket *psock, FAR struct sockaddr *addr, { /* If an address is provided, then the length must also be provided. */ - DEBUGASSERT(addrlen > 0); + DEBUGASSERT(*addrlen > 0); /* A valid length depends on the address domain */