aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-11-24 07:51:30 +0000
committerRoger Dingledine <arma@torproject.org>2004-11-24 07:51:30 +0000
commita2042a8b1db4732834f9bd963737b39f62eb271d (patch)
tree0644a7ddeda743ac9bf30b085ee731c75916480e
parentc89afb791705aa86828b9d407fa744ed9312a0ac (diff)
downloadtor-a2042a8b1db4732834f9bd963737b39f62eb271d.tar
tor-a2042a8b1db4732834f9bd963737b39f62eb271d.tar.gz
a little help for dfc to debug his "resolve 800 things at once" test
svn:r2978
-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;