mirror of
https://github.com/apache/nuttx.git
synced 2026-05-25 09:45:55 +08:00
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:
committed by
Xiang Xiao
parent
d1343df68f
commit
1f8de344dd
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user