summaryrefslogtreecommitdiff
path: root/lib/json.c
diff options
context:
space:
mode:
authorkevinshen <kevinshen@inspur.com>2022-07-07 12:10:03 +0800
committerkevinshen <kevinshen@inspur.com>2022-07-07 12:10:03 +0800
commit30220d1e35a92bbf3e6694d81b308630c7db27c3 (patch)
tree863b6d1f84fef4e3059bcf97e9b6bd721257387a /lib/json.c
parent237d29803d58e58ffe5bbdf655c26717a84eb267 (diff)
lib: check hostname in resolver_resolve
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. Signed-off-by: kevinshen <kevinshen@inspur.com>
Diffstat (limited to 'lib/json.c')
0 files changed, 0 insertions, 0 deletions