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

Always NULL check ifaddrs->ifa_addr #415

Closed

Conversation

mattmundell
Copy link
Contributor

What:

Add NULL checks.

man getifaddrs: This field may contain a null pointer.

Why:

Solves a segfault in networking_tests.c.

How:

make tests && CTEST_OUTPUT_ON_FAILURE=1 make test should pass. Seeing failure may depend on network setup.

Checklist:

Solves a segfault in networking_tests.c.

man getifaddrs: This field may contain a null pointer.
@mattmundell
Copy link
Contributor Author

Moved to /pull/416.

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.

1 participant