From a2042a8b1db4732834f9bd963737b39f62eb271d Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Wed, 24 Nov 2004 07:51:30 +0000 Subject: a little help for dfc to debug his "resolve 800 things at once" test svn:r2978 --- src/tools/tor-resolve.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tools/tor-resolve.c b/src/tools/tor-resolve.c index 40fd749d68..2de3cb9ca6 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; -- cgit v1.2.3-54-g00ecf