diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-02-20 23:20:36 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-02-20 23:20:36 +0000 |
commit | f0e523c6ef9f6308a72d3474aaec04718a100ac9 (patch) | |
tree | 1f04e96a983915b147f77a7c5286d231b15fb872 /src/or/dirvote.c | |
parent | ba977ed4f1e3e48759fa48bed9bb4de5085e32d6 (diff) | |
download | tor-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.c | 2 |
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."); |