Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unbreak netutils tcp resolving, segfault #99

Closed
wants to merge 1 commit into from

Conversation

stromnet
Copy link

@stromnet stromnet commented Sep 5, 2015

The previous commit dcf0a59 caused freeaddrinfo to be called with a NULL pointer if lookup was exhausted. On FreeBSD this caused a segfault.
res0 name as in FreeBSD manpage example.

The previous commit dcf0a59 caused freeaddrinfo to be called with a NULL pointer if lookup was exhausted. On FreeBSD this caused a segfault.
Used res0 name as per FreeBSD manpage example.
@stromnet stromnet changed the title Unbreak netutils tcp resolving Unbreak netutils tcp resolving, segfault Sep 5, 2015
@RobinGeuze
Copy link

This also fixes a memleak in case freeaddrinfo returns multiple results.

@stromnet
Copy link
Author

stromnet commented Oct 6, 2015

PR for FreeBSD port opened, requesting downstream patch until upstream fixes it:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203572

@jfrickson
Copy link
Contributor

I actually just recently fixed this without checking for a pull request. It's fixed in branch 'maint' via commit 33d42b1 for issue #104

@jfrickson jfrickson closed this Nov 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants