From 1f8de344dda61ac2d6aecd5ad1dd2fd90e834bdf Mon Sep 17 00:00:00 2001 From: Jukka Laitinen Date: Mon, 1 Jun 2020 14:50:32 +0300 Subject: [PATCH] net/inet/inet_sockif.c: Fix debugassert compilation Should derefer addrlen pointer, instead of comparing whether the pointer itself is > 0 Signed-off-by: Jukka Laitinen --- net/inet/inet_sockif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */