From f82a36508df3d1bb6517b94c8e86325c6f6d1360 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Wed, 21 Jul 2004 22:54:27 +0000 Subject: [PATCH] make router_nickname_is_approved() do the right thing svn:r2090 --- src/or/dirserv.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/or/dirserv.c b/src/or/dirserv.c index a05ed98fa7..cbdfb6b0a7 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -178,20 +178,22 @@ dirserv_router_fingerprint_is_known(const routerinfo_t *router) } } -/** Return true iff any router named nickname is in the fingerprint - * list. */ +/** Return true iff any router named nickname with digest + * is in the verified fingerprint list. */ static int router_nickname_is_approved(const char *nickname, const char *digest) { int i,j; fingerprint_entry_t *ent; char fp[FINGERPRINT_LEN+1]; + char hexdigest[HEX_DIGEST_LEN+1]; if (!fingerprint_list) return 0; - for (i=j=0;i