diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-11-07 14:17:46 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-11-07 14:17:46 +0000 |
commit | aa405f29e6a54df70d446b9a17f2c98671ad727f (patch) | |
tree | 1fdaa4889f4b179d278adef12e1c2432d3564c0a /src/or | |
parent | 5e2cdc166621da9e219e305f2de6e10de412cb97 (diff) | |
download | tor-aa405f29e6a54df70d446b9a17f2c98671ad727f.tar.gz tor-aa405f29e6a54df70d446b9a17f2c98671ad727f.zip |
fix up signs in r17208
svn:r17211
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/dirvote.c | 2 | ||||
-rw-r--r-- | src/or/networkstatus.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/or/dirvote.c b/src/or/dirvote.c index 07bbb159b9..c3ab6bda1c 100644 --- a/src/or/dirvote.c +++ b/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; } diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c index 6458d0c04a..b1cd2eeab8 100644 --- a/src/or/networkstatus.c +++ b/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; |