aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tools/tor-resolve.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tools/tor-resolve.c b/src/tools/tor-resolve.c
index 40fd749d6..2de3cb9ca 100644
--- a/src/tools/tor-resolve.c
+++ b/src/tools/tor-resolve.c
@@ -81,8 +81,10 @@ parse_socks4a_resolve_response(const char *response, size_t len,
status = (uint8_t)response[1];
if (get_uint16(response+2)!=0) /* port: 0 */
return -1;
- if (status != 90)
+ if (status != 90) {
+ log_fn(LOG_WARN,"Got status response '%d', meaning not success.", status);
return -1;
+ }
*addr_out = ntohl(get_uint32(response+4));
return 0;