xiaoxiang781216 commented on a change in pull request #370: net: socket:
Introduce net_clear_sinzero()
URL: https://github.com/apache/incubator-nuttx/pull/370#discussion_r383645317
##########
File path: net/socket/getpeername.c
##########
@@ -121,7 +123,22 @@ int psock_getpeername(FAR struct socket *psock, FAR
struct sockaddr *addr,
return -EOPNOTSUPP;
}
- return psock->s_sockif->si_getpeername(psock, addr, addrlen);
Review comment:
Yes, something like this, but we need check each implementation don't
overwrite the unused field with the random bit again.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services