masayuki2009 commented on a change in pull request #370: net: socket: Introduce 
net_clear_sinzero()
URL: https://github.com/apache/incubator-nuttx/pull/370#discussion_r383635279
 
 

 ##########
 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:
   @xiaoxiang781216 Do you mean that if (add != NULL &&  addrlen > 0), then 
memset(addr, 0, addrlen) ?

----------------------------------------------------------------
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

Reply via email to