net/socket/getpeername: Fixed warning in DEBUG code.
This commit is contained in:
parent
06f693965c
commit
1e90dd9284
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ int psock_getpeername(FAR struct socket *psock, FAR struct sockaddr *addr, FAR s
|
|||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_FEATURES
|
||||
if (addr == NULL || addrlen <= 0)
|
||||
if (addr == NULL || *addrlen <= 0)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue