Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions net/socket/getsockname.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,12 @@ int psock_getsockname(FAR struct socket *psock, FAR struct sockaddr *addr,
return -EBADF;
}

/* Some sanity checking... Shouldn't need this on a buckled up embedded
* system (?)
*/
/* Some sanity checking... */

#ifdef CONFIG_DEBUG_FEATURES
if (addr == NULL || *addrlen <= 0)
if (addr == NULL || addrlen == NULL)
{
return -EINVAL;
}
#endif

/* Let the address family's send() method handle the operation */

Expand Down