aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/or/routerlist.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index c0d2aaac5f..101a4a4f68 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -283,7 +283,8 @@ authority_cert_get_newest_by_id(const char *id_digest)
{
cert_list_t *cl;
authority_cert_t *best = NULL;
- if (!trusted_dir_certs || !(cl = digestmap_get(trusted_dir_certs, id_digest)))
+ if (!trusted_dir_certs ||
+ !(cl = digestmap_get(trusted_dir_certs, id_digest)))
return NULL;
SMARTLIST_FOREACH(cl->certs, authority_cert_t *, cert,
{
@@ -320,7 +321,8 @@ authority_cert_get_by_digests(const char *id_digest,
const char *sk_digest)
{
cert_list_t *cl;
- if (!trusted_dir_certs || !(cl = digestmap_get(trusted_dir_certs, id_digest)))
+ if (!trusted_dir_cl ||
+ !(certs = digestmap_get(trusted_dir_certs, id_digest)))
return NULL;
SMARTLIST_FOREACH(cl->certs, authority_cert_t *, cert,
if (!memcmp(cert->signing_key_digest, sk_digest, DIGEST_LEN))
@@ -347,7 +349,8 @@ void
authority_cert_dl_failed(const char *id_digest, int status)
{
cert_list_t *cl;
- if (!trusted_dir_certs || !(cl = digestmap_get(trusted_dir_certs, id_digest)))
+ if (!trusted_dir_certs ||
+ !(cl = digestmap_get(trusted_dir_certs, id_digest)))
return;
download_status_failed(&cl->dl_status, status);