summaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
authorAndrea Shepard <andrea@torproject.org>2013-05-09 04:56:54 -0700
committerAndrea Shepard <andrea@torproject.org>2013-05-09 10:55:01 -0700
commitfddb814feaa3d0091df03b26fa709cfba55312ed (patch)
treea80560b8e77ab80ac5f88136521bd618253d00ff /src/or/router.c
parentd5bd4a4763dfa74572ce6ed0b565315c43ff9f87 (diff)
downloadtor-fddb814feaa3d0091df03b26fa709cfba55312ed.tar.gz
tor-fddb814feaa3d0091df03b26fa709cfba55312ed.zip
When downloading certificates, distinguish requesting by identity digest from requesting by ID digest, signing key pair; fixes bug 5595
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/router.c b/src/or/router.c
index 1ace8e2492..c68a309230 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -758,7 +758,8 @@ init_keys(void)
if (cert) { /* add my own cert to the list of known certs */
log_info(LD_DIR, "adding my own v3 cert");
if (trusted_dirs_load_certs_from_string(
- cert->cache_info.signed_descriptor_body, 0, 0)<0) {
+ cert->cache_info.signed_descriptor_body,
+ TRUSTED_DIRS_CERTS_SRC_SELF, 0)<0) {
log_warn(LD_DIR, "Unable to parse my own v3 cert! Failing.");
return -1;
}