sonic-frr
sonic-frr copied to clipboard
lib: check hostname in resolver_resolve
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:
trace code:
@lguohan could you help to review it?