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

lib: check hostname in resolver_resolve #26

Open
wants to merge 1 commit into
base: frr/7.5
Choose a base branch
from

Conversation

inspurSDN
Copy link

@inspurSDN inspurSDN commented Jul 7, 2022

resolver_resolve should check hostname is null or not.

if ares_gethostbyname() get a null hostname string, it will access a null pointer and crash.

test result:
null

trace code:
log1
log1-1

resolver_resolve should check hostname is null or not.

if ares_gethostbyname() get null hostname string, the hostname string will access a null pointer and crash.
@inspurSDN
Copy link
Author

inspurSDN commented Jul 7, 2022

@lguohan could you help to review it?

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