diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-09-27 16:41:42 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-09-27 16:41:42 +0000 |
commit | a1c5a807d071178fb57910711854d3610c1c2f01 (patch) | |
tree | 49c708c65a66016fa545d096a7eb59b8b8b150e5 /src/or/routerlist.c | |
parent | 33b715f91bd699c01a1a06a5c02e77d3c3a43fc6 (diff) | |
download | tor-a1c5a807d071178fb57910711854d3610c1c2f01.tar tor-a1c5a807d071178fb57910711854d3610c1c2f01.tar.gz |
r15418@catbus: nickm | 2007-09-27 12:37:59 -0400
Fix a stupid logic error in authority_cert_get_by_sk_digest: the presence of an authority lacking a v3 cert does not mean that subsequent authorities lack them too.
svn:r11668
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r-- | src/or/routerlist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 41dbd126b..29b80735a 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -388,7 +388,7 @@ authority_cert_get_by_sk_digest(const char *sk_digest) SMARTLIST_FOREACH(trusted_dir_servers, trusted_dir_server_t *, ds, { if (!ds->v3_certs) - return NULL; + continue; SMARTLIST_FOREACH(ds->v3_certs, authority_cert_t *, cert, { if (!memcmp(cert->signing_key_digest, sk_digest, DIGEST_LEN)) |