diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-02-05 19:40:15 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-02-05 19:40:15 +0000 |
commit | 2502359a5b54792715d64229b10c008708c82a2f (patch) | |
tree | b291175d39010cec18182d35d200cdd0a5df69a7 /src | |
parent | 54029559d7153286b9c4fb2ba31a7efacc65181e (diff) | |
download | tor-2502359a5b54792715d64229b10c008708c82a2f.tar.gz tor-2502359a5b54792715d64229b10c008708c82a2f.zip |
r17897@catbus: nickm | 2008-02-05 13:51:40 -0500
Whitespace cleanups
svn:r13378
Diffstat (limited to 'src')
-rw-r--r-- | src/or/routerlist.c | 9 |
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); |