diff options
author | teor (Tim Wilson-Brown) <teor2345@gmail.com> | 2016-05-04 16:47:28 +1000 |
---|---|---|
committer | teor (Tim Wilson-Brown) <teor2345@gmail.com> | 2016-05-11 13:30:30 -0400 |
commit | cdb528d841e753b6cc0b8d8b2aeb6bed183a1a8d (patch) | |
tree | afde71681ae55859d70a038ea02ea1c7c2bb29cc /src/or/directory.c | |
parent | 730cfeb6bd3d8060e44026469ec6d75695c00179 (diff) | |
download | tor-cdb528d841e753b6cc0b8d8b2aeb6bed183a1a8d.tar.gz tor-cdb528d841e753b6cc0b8d8b2aeb6bed183a1a8d.zip |
Fetch certificates from the same directory as previous certificates
Improves the fix to #18963.
Diffstat (limited to 'src/or/directory.c')
-rw-r--r-- | src/or/directory.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index 4eeb3eae8c..373318f7e5 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -2063,7 +2063,8 @@ connection_dir_client_reached_eof(dir_connection_t *conn) } if (src_code != -1) { - if (trusted_dirs_load_certs_from_string(body, src_code, 1)<0) { + if (trusted_dirs_load_certs_from_string(body, src_code, 1, + conn->identity_digest)<0) { log_warn(LD_DIR, "Unable to parse fetched certificates"); /* if we fetched more than one and only some failed, the successful * ones got flushed to disk so it's safe to call this on them */ |