mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
fix a segfault in last bug-285-related commit.
svn:r6417
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user