r17897@catbus: nickm | 2008-02-05 13:51:40 -0500

Whitespace cleanups


svn:r13378
This commit is contained in:
Nick Mathewson 2008-02-05 19:40:15 +00:00
parent 54029559d7
commit 2502359a5b

View File

@ -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);