mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
r8983@totoro: nickm | 2006-10-09 14:19:18 -0400
Add missing ! to code to generate short/verbose nicknames for orconn events. svn:r8674
This commit is contained in:
+3
-3
@@ -2975,7 +2975,7 @@ static void
|
||||
orconn_target_get_name(int long_names,
|
||||
char *name, size_t len, or_connection_t *conn)
|
||||
{
|
||||
if (long_names) {
|
||||
if (! long_names) {
|
||||
if (conn->nickname)
|
||||
strlcpy(name, conn->nickname, len);
|
||||
else
|
||||
@@ -2990,8 +2990,8 @@ orconn_target_get_name(int long_names,
|
||||
name[0] = '$';
|
||||
base16_encode(name+1, len-1, conn->identity_digest,
|
||||
DIGEST_LEN);
|
||||
} else {
|
||||
tor_snprintf(name, len, "%s:%d",
|
||||
} else {
|
||||
tor_snprintf(name, len, "%s:%d",
|
||||
conn->_base.address, conn->_base.port);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user