[or-cvs] a little help for dfc to debug his "resolve 800 things at o...

Roger Dingledine arma at seul.org
Wed Nov 24 07:51:33 UTC 2004


Update of /home2/or/cvsroot/tor/src/tools
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/tools

Modified Files:
	tor-resolve.c 
Log Message:
a little help for dfc to debug his "resolve 800 things at once" test


Index: tor-resolve.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/tools/tor-resolve.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- tor-resolve.c	24 Nov 2004 07:45:42 -0000	1.7
+++ tor-resolve.c	24 Nov 2004 07:51:30 -0000	1.8
@@ -81,8 +81,10 @@
   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;



More information about the tor-commits mailing list