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

FreeBSD requires sin_len field to be set. #102

Merged
merged 3 commits into from
Mar 25, 2017
Merged

Conversation

vlm
Copy link
Contributor

@vlm vlm commented Mar 24, 2017

Otherwise e.g. valgrind complains.

@sustrik
Copy link
Owner

sustrik commented Mar 25, 2017

Is this causing problems?

AFAIU this field is not required to be set, see here:

http://stackoverflow.com/questions/38913326/are-sockaddr-in-and-sockaddr-in6-still-using-sin-len-and-sin6-len

@vlm
Copy link
Contributor Author

vlm commented Mar 25, 2017 via email

@sustrik sustrik merged commit f6a52c5 into sustrik:master Mar 25, 2017
@sustrik
Copy link
Owner

sustrik commented Mar 25, 2017

Fair enough. Thanks for the patch!

@vlm
Copy link
Contributor Author

vlm commented Mar 25, 2017

Yeah, if you noticed there's a provision for setting the sin_len in the DNS library (the #if defined(SA_LEN) which I've extended), but it wasn't consistently applied.

@vlm
Copy link
Contributor Author

vlm commented Mar 25, 2017

Also, wahern/dns#21

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.

2 participants