From d6c04216ef10ec766a916c017d6b37718db4cd1f Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 25 Apr 2006 05:59:31 +0000 Subject: [PATCH] fix a segfault in last bug-285-related commit. svn:r6417 --- src/or/routerlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 74351d9525..e1c08a6696 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -2297,7 +2297,7 @@ router_get_combined_status_by_nickname(const char *nickname, " but none is listed as named by the directory authories. " "Choosing one arbitrarily."); } - } else if (warn_if_unnamed) { + } else if (warn_if_unnamed && best) { char fp[HEX_DIGEST_LEN+1]; base16_encode(fp, sizeof(fp), best->status.identity_digest, DIGEST_LEN);