Browse Source

fix up signs in r17208

svn:r17211
Nick Mathewson 15 years ago
parent
commit
aa405f29e6
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/or/dirvote.c
  2. 1 1
      src/or/networkstatus.c

+ 1 - 1
src/or/dirvote.c

@@ -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;
   }

+ 1 - 1
src/or/networkstatus.c

@@ -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;