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 <jukka.laitinen@intel.com>
This commit is contained in:
Jukka Laitinen 2020-06-01 14:50:32 +03:00 committed by Xiang Xiao
parent d1343df68f
commit 1f8de344dd
1 changed files with 1 additions and 1 deletions

View File

@ -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 */