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

[or-cvs] Remember to mark v2 networkstatus non-dirty when we generat...



Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv7188/src/or

Modified Files:
	dirserv.c 
Log Message:
Remember to mark v2 networkstatus non-dirty when we generate it; also, fix spaces.

Index: dirserv.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/dirserv.c,v
retrieving revision 1.194
retrieving revision 1.195
diff -u -d -r1.194 -r1.195
--- dirserv.c	26 Aug 2005 21:55:38 -0000	1.194
+++ dirserv.c	26 Aug 2005 22:08:24 -0000	1.195
@@ -323,8 +323,6 @@
   return 0;
 }
 
-
-
 /** Parse the server descriptor at desc and maybe insert it into the list of
  * server descriptors.  Set msg to a message that should be passed back to the
  * origin of this descriptor, or to NULL.
@@ -713,7 +711,6 @@
   return -1;
 }
 
-
 /** A cached_dir_t represents a cacheable directory object, along with its
  * compressed form. */
 typedef struct cached_dir_t {
@@ -832,7 +829,6 @@
   }
 }
 
-
 /** Helper: If we're authoritative and <b>auth_src</b> is set, use
  * <b>auth_src</b>, otherwise use <b>cache_src</b>.  If we're using
  * <b>auth_src</b> and it's been <b>dirty</b> for at least
@@ -1166,6 +1162,7 @@
     goto done;
 
   set_cached_dir(&the_v2_networkstatus, status, time(NULL));
+  the_v2_networkstatus_is_dirty = 0;
   dirserv_set_cached_networkstatus_v2(status, fingerprint, time(NULL));
 
   r = 0;