]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
a little help for dfc to debug his "resolve 800 things at once" test
authorRoger Dingledine <arma@torproject.org>
Wed, 24 Nov 2004 07:51:30 +0000 (07:51 +0000)
committerRoger Dingledine <arma@torproject.org>
Wed, 24 Nov 2004 07:51:30 +0000 (07:51 +0000)
svn:r2978

src/tools/tor-resolve.c

index 40fd749d688fe95aafb0b767e5a6bfb5a5033efb..2de3cb9ca60fc64424e71ef4835e734520f5789a 100644 (file)
@@ -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;