[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] fix a logic error in detecting skewed dirserver mirrors



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

Modified Files:
      Tag: tor-0_0_9-patches
	directory.c 
Log Message:
fix a logic error in detecting skewed dirserver mirrors


Index: directory.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/directory.c,v
retrieving revision 1.181.2.13
retrieving revision 1.181.2.14
diff -u -d -r1.181.2.13 -r1.181.2.14
--- directory.c	3 Feb 2005 23:38:36 -0000	1.181.2.13
+++ directory.c	4 Feb 2005 01:09:29 -0000	1.181.2.14
@@ -689,7 +689,7 @@
       tor_free(body); tor_free(headers);
       return -1;
     }
-    if (router_load_routerlist_from_directory(body, NULL, skewed, 0) < 0) {
+    if (router_load_routerlist_from_directory(body, NULL, !skewed, 0) < 0) {
       log_fn(LOG_NOTICE,"I failed to parse the directory I fetched from %s:%d. Ignoring.", conn->address, conn->port);
     } else {
       log_fn(LOG_INFO,"updated routers.");