diff options
author | rl1987 <rl1987@users.noreply.github.com> | 2020-06-05 11:49:24 +0300 |
---|---|---|
committer | rl1987 <rl1987@users.noreply.github.com> | 2020-06-05 11:49:24 +0300 |
commit | 3e4814edeb563535b0f3bf658c01d7c10d6b4aa2 (patch) | |
tree | 95d09237925821a3c0af05c8c80b0391d502ae98 /src/feature/relay/dns.c | |
parent | 7a004fce8d375b7c89703a3292634af4a221691a (diff) | |
download | tor-3e4814edeb563535b0f3bf658c01d7c10d6b4aa2.tar.gz tor-3e4814edeb563535b0f3bf658c01d7c10d6b4aa2.zip |
Fix some checks of tor_inet_ntoa() return value
Also, fix a format string.
Diffstat (limited to 'src/feature/relay/dns.c')
-rw-r--r-- | src/feature/relay/dns.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/feature/relay/dns.c b/src/feature/relay/dns.c index 26e9c6bf13..b83bd9b758 100644 --- a/src/feature/relay/dns.c +++ b/src/feature/relay/dns.c @@ -1881,7 +1881,7 @@ evdns_wildcard_check_callback(int result, char type, int count, int ttl, int ntoa_res; in.s_addr = addrs[i]; ntoa_res = tor_inet_ntoa(&in, answer_buf, sizeof(answer_buf)); - tor_assert_nonfatal(ntoa_res > 0); + tor_assert_nonfatal(ntoa_res >= 0); if (ntoa_res > 0) wildcard_increment_answer(answer_buf); } |