-
Notifications
You must be signed in to change notification settings - Fork 167
Open
Description
For the createSocket() in common/socket_utils.h, the for loop in the code is iterating over the linked list of addrinfo structures returned by getaddrinfo(). In each iteration of the loop, a new socket is created and the socket_fd is overwritten. If the loop iterates more than once, the previous socket file descriptors will be lost and the sockets will not be closed, which can lead to resource leaks.
I don't know if I am missing something and I would appreciate if anyone can help me with this. Thanks.
stacygaudreau and zebiriabderrahim
Metadata
Metadata
Assignees
Labels
No labels