aboutsummaryrefslogtreecommitdiff
path: root/src/or/nodelist.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-06-11 10:11:44 -0400
committerNick Mathewson <nickm@torproject.org>2016-06-11 10:11:44 -0400
commitb14c1f40826d9e2383707036b6e524f6756aa5d5 (patch)
tree2a355a39b3ade83c429d040d8b7cce77fe86ea33 /src/or/nodelist.c
parent4f8086fb20e93c477f033f58da17aa31b9c29fd6 (diff)
parentbdc59e33c13672b64d5d52dfc395f9e80c6ed528 (diff)
downloadtor-b14c1f40826d9e2383707036b6e524f6756aa5d5.tar.gz
tor-b14c1f40826d9e2383707036b6e524f6756aa5d5.zip
Merge remote-tracking branch 'public/bug19203_027' into HEAD
Diffstat (limited to 'src/or/nodelist.c')
-rw-r--r--src/or/nodelist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/nodelist.c b/src/or/nodelist.c
index abbb82dfdd..89b5355c8d 100644
--- a/src/or/nodelist.c
+++ b/src/or/nodelist.c
@@ -594,10 +594,10 @@ node_get_by_nickname,(const char *nickname, int warn_if_unnamed))
"but none is listed as Named in the directory consensus. "
"Choosing one arbitrarily.", nickname);
}
- } else if (smartlist_len(matches)>1 && warn_if_unnamed) {
+ } else if (smartlist_len(matches)==1 && warn_if_unnamed) {
char fp[HEX_DIGEST_LEN+1];
node_t *node = smartlist_get(matches, 0);
- if (node->name_lookup_warned) {
+ if (! node->name_lookup_warned) {
base16_encode(fp, sizeof(fp), node->identity, DIGEST_LEN);
log_warn(LD_CONFIG,
"You specified a server \"%s\" by name, but the directory "