]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
fix up signs in r17208
authorNick Mathewson <nickm@torproject.org>
Fri, 7 Nov 2008 14:17:46 +0000 (14:17 +0000)
committerNick Mathewson <nickm@torproject.org>
Fri, 7 Nov 2008 14:17:46 +0000 (14:17 +0000)
svn:r17211

src/or/dirvote.c
src/or/networkstatus.c

index 07bbb159b95a1d41276a65289ff7e62badee8a77..c3ab6bda1c27740fb0e30b6ee0f875f0c494d1b2 100644 (file)
@@ -1576,7 +1576,7 @@ dirvote_perform_vote(void)
   if (!cert || !key) {
     log_warn(LD_NET, "Didn't find key/certificate to generate v3 vote");
     return -1;
-  } else if (now < cert->expires) {
+  } else if (cert->expires < now) {
     log_warn(LD_NET, "Can't generate v3 vote with expired certificate");
     return -1;
   }
index 6458d0c04a197a55f2290c5e2bf395896839637e..b1cd2eeab8f64b86342d130d6a094b5f42818f0e 100644 (file)
@@ -404,7 +404,7 @@ networkstatus_check_consensus_signature(networkstatus_t *consensus,
         smartlist_add(unrecognized, voter);
         ++n_unknown;
         continue;
-      } else if (!cert || now > cert->expires) {
+      } else if (!cert || cert->expires < now) {
         smartlist_add(need_certs_from, voter);
         ++n_missing_key;
         continue;