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

Do Not Treat Invalid IP Address as Failure #2

Open
NMcCloudTower opened this issue Apr 28, 2023 · 0 comments
Open

Do Not Treat Invalid IP Address as Failure #2

NMcCloudTower opened this issue Apr 28, 2023 · 0 comments

Comments

@NMcCloudTower
Copy link

if (inet_aton(name, &iadr) == 0)

If the first character in a hostname is a number but the value is not an explicit IP address, it is being treated as a failure. It is possible the hostname literally starts with a number. Could the if statement be inverted, returning the IP address if legitimate, and proceed past to resolving the hostname if not.

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

No branches or pull requests

1 participant