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

[or-cvs] r17211: {tor} fix up signs in r17208 (tor/trunk/src/or)



Author: nickm
Date: 2008-11-07 09:17:46 -0500 (Fri, 07 Nov 2008)
New Revision: 17211

Modified:
   tor/trunk/src/or/dirvote.c
   tor/trunk/src/or/networkstatus.c
Log:
fix up signs in r17208

Modified: tor/trunk/src/or/dirvote.c
===================================================================
--- tor/trunk/src/or/dirvote.c	2008-11-07 14:09:07 UTC (rev 17210)
+++ tor/trunk/src/or/dirvote.c	2008-11-07 14:17:46 UTC (rev 17211)
@@ -1576,7 +1576,7 @@
   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;
   }

Modified: tor/trunk/src/or/networkstatus.c
===================================================================
--- tor/trunk/src/or/networkstatus.c	2008-11-07 14:09:07 UTC (rev 17210)
+++ tor/trunk/src/or/networkstatus.c	2008-11-07 14:17:46 UTC (rev 17211)
@@ -404,7 +404,7 @@
         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;