Skip to content

Conversation

icy17
Copy link
Contributor

@icy17 icy17 commented Apr 10, 2024

No description provided.

Copy link
Member

@azat azat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.

@@ -228,6 +228,10 @@ main(int argc, char **argv)
event_free(ev);
if (timeout)
event_free(timeout);
if (pair[0] >= 0)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not documented does evutil_socketpair will fill the pair in case of failure or not, so you need to initialize it with EVUTIL_INVALID_SOCKET before calling and then check against it, and not >=0

@azat
Copy link
Member

azat commented Jul 8, 2024

Will be merged with #1679. Thank you for you job!

@azat azat closed this Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants