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


##########
libs/libc/netdb/lib_getaddrinfo.c:
##########
@@ -122,6 +130,38 @@ FAR static struct ai_s *alloc_ai(int family, int socktype, 
int protocol,
   return ai;
 }
 
+static int add_ai(FAR struct addrinfo **res,

Review Comment:
   why not remove res, prev_ai is enough to keep all result in the single link 
list.



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