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_r383617852
##########
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:
Can we zero out the whole addr before call
si_getpeername/si_getsockename/si_accept/si_recvfrom?
----------------------------------------------------------------
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