xiaoxiang781216 commented on code in PR #13194:
URL: https://github.com/apache/nuttx/pull/13194#discussion_r1731992582


##########
fs/nfs/rpc_clnt.c:
##########
@@ -184,8 +184,8 @@ static int rpcclnt_socket(FAR struct rpcclnt *rpc, 
in_port_t rport)
 
   memcpy(&raddr, rpc->rc_name, sizeof(raddr));
 
+  memset(&laddr, 0, sizeof(laddr));
   laddr.ss_family = raddr.ss_family;
-  memset(laddr.ss_data, 0, sizeof(laddr.ss_data));

Review Comment:
   @pkarashchenko should we ensure ss_data field start at the padding?



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to