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

InetAddr::from_std fails to initialize len fields #1246

Closed
asomers opened this issue May 16, 2020 · 0 comments · Fixed by #1642
Closed

InetAddr::from_std fails to initialize len fields #1246

asomers opened this issue May 16, 2020 · 0 comments · Fixed by #1642
Assignees

Comments

@asomers
Copy link
Member

asomers commented May 16, 2020

InetAddr::from_std creates libc::sockaddr_in and libc::sockaddr_in6 structs, but doesn't set the len field. That field is only present on BSD-based operating systems.

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 a pull request may close this issue.

2 participants