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

[BUG] h_errno and EAI_xxx are wrongly mixed #15752

Open
1 task done
yamt opened this issue Feb 4, 2025 · 0 comments
Open
1 task done

[BUG] h_errno and EAI_xxx are wrongly mixed #15752

yamt opened this issue Feb 4, 2025 · 0 comments
Labels
Arch: all Issues that apply to all architectures Area: Networking Effects networking subsystem Area: Posix Posix issues OS: Mac Issues related to MacOS (building system, etc) Type: Bug Something isn't working

Comments

@yamt
Copy link
Contributor

yamt commented Feb 4, 2025

Description / Steps to reproduce the issue

gethostentbyname_r can return EAI_NONAME while it's expected to return an h_errno value. (eg. HOST_NOT_FOUND)

getaddrinfo treats an error from gethostentbyname_r as an EAI_xxx while it's actually an h_errno value.

maybe someone should audit the whole netdb logic.

On which OS does this issue occur?

[OS: Mac]

What is the version of your OS?

macOS 15.3

NuttX Version

master

Issue Architecture

[Arch: all]

Issue Area

[Area: Networking], [Area: Posix]

Host information

No response

Verification

  • I have verified before submitting the report.
@yamt yamt added the Type: Bug Something isn't working label Feb 4, 2025
@github-actions github-actions bot added Arch: all Issues that apply to all architectures Area: Networking Effects networking subsystem Area: Posix Posix issues OS: Mac Issues related to MacOS (building system, etc) labels Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arch: all Issues that apply to all architectures Area: Networking Effects networking subsystem Area: Posix Posix issues OS: Mac Issues related to MacOS (building system, etc) Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant