aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2009-10-26 20:12:52 -0400
committerNick Mathewson <nickm@torproject.org>2009-10-26 20:14:11 -0400
commit56048637a5e34220d0a5c7abbef4eb56c9312f6c (patch)
tree03dc6a56a3ad2a2a77ae0b8ae01e41df7b4052f9 /src/or
parent16dc543851bb82c481d4319d557ffea5bef6cc50 (diff)
downloadtor-56048637a5e34220d0a5c7abbef4eb56c9312f6c.tar.gz
tor-56048637a5e34220d0a5c7abbef4eb56c9312f6c.zip
Only send the if_modified_since header for a v3 consensus.
Spotted by xmux; bugfix on 0.2.0.10-alpha. (Bug introduced by 20b10859)
Diffstat (limited to 'src/or')
-rw-r--r--src/or/directory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 5b8637a39d..8099e3376d 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -332,7 +332,7 @@ directory_get_from_dirserver(uint8_t dir_purpose, uint8_t router_purpose,
return;
}
- if (DIR_PURPOSE_FETCH_CONSENSUS) {
+ if (dir_purpose == DIR_PURPOSE_FETCH_CONSENSUS) {
networkstatus_t *v = networkstatus_get_latest_consensus();
if (v)
if_modified_since = v->valid_after + 180;