diff options
| author | kevinshen <kevinshen@inspur.com> | 2022-07-07 12:10:03 +0800 |
|---|---|---|
| committer | kevinshen <kevinshen@inspur.com> | 2022-07-07 12:10:03 +0800 |
| commit | 30220d1e35a92bbf3e6694d81b308630c7db27c3 (patch) | |
| tree | 863b6d1f84fef4e3059bcf97e9b6bd721257387a /lib/json.c | |
| parent | 237d29803d58e58ffe5bbdf655c26717a84eb267 (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
