summaryrefslogtreecommitdiff
path: root/src/or/dirvote.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-02-20 23:20:36 +0000
committerNick Mathewson <nickm@torproject.org>2008-02-20 23:20:36 +0000
commitf0e523c6ef9f6308a72d3474aaec04718a100ac9 (patch)
tree1f04e96a983915b147f77a7c5286d231b15fb872 /src/or/dirvote.c
parentba977ed4f1e3e48759fa48bed9bb4de5085e32d6 (diff)
downloadtor-f0e523c6ef9f6308a72d3474aaec04718a100ac9.tar.gz
tor-f0e523c6ef9f6308a72d3474aaec04718a100ac9.zip
r18272@catbus: nickm | 2008-02-20 18:20:33 -0500
add a flag to suppress overwriting the certificates file with new certificates, so we do not overwrite all certs when starting as an authority. svn:r13630
Diffstat (limited to 'src/or/dirvote.c')
-rw-r--r--src/or/dirvote.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/dirvote.c b/src/or/dirvote.c
index 1455418a88..50f8569292 100644
--- a/src/or/dirvote.c
+++ b/src/or/dirvote.c
@@ -1543,7 +1543,7 @@ dirvote_add_vote(const char *vote_body, const char **msg_out, int *status_out)
/* Hey, it's a new cert! */
trusted_dirs_load_certs_from_string(
vote->cert->cache_info.signed_descriptor_body,
- 0 /* from_store */);
+ 0 /* from_store */, 1 /*flush*/);
if (!authority_cert_get_by_digests(vote->cert->cache_info.identity_digest,
vote->cert->signing_key_digest)) {
log_warn(LD_BUG, "We added a cert, but still couldn't find it.");