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:
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. */
|
/* 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 */
|
/* A valid length depends on the address domain */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user