[or-cvs] cached-directory has a directory, not a router list

Nick Mathewson nickm at seul.org
Tue Sep 28 22:43:13 UTC 2004


Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/tmp/cvs-serv20608/src/or

Modified Files:
	routerlist.c 
Log Message:
cached-directory has a directory, not a router list

Index: routerlist.c
===================================================================
RCS file: /home/or/cvsroot/src/or/routerlist.c,v
retrieving revision 1.140
retrieving revision 1.141
diff -u -d -r1.140 -r1.141
--- routerlist.c	28 Sep 2004 22:38:21 -0000	1.140
+++ routerlist.c	28 Sep 2004 22:43:11 -0000	1.141
@@ -65,7 +65,7 @@
     s = read_file_to_str(filename,0);
     if (s) {
       log_fn(LOG_INFO, "Loading cached directory from %s", filename);
-      if (router_load_routerlist_from_string(s, 0) < 0) {
+      if (router_load_routerlist_from_directory(s, NULL) < 0) {
         log_fn(LOG_WARN, "Cached directory '%s' was unparseable; ignoring.", filename);
       }
       tor_free(s);



More information about the tor-commits mailing list