diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-12-16 11:25:59 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-12-16 11:25:59 -0500 |
commit | 4ec9751c144465f6f70450545d68372f35f2ba78 (patch) | |
tree | 968408ae6973b92aae59441274ba766bd7f83e7d /src/or/entrynodes.c | |
parent | 2cee38f76a46860e2fb29fbd95ba36b332aa38c6 (diff) | |
download | tor-4ec9751c144465f6f70450545d68372f35f2ba78.tar.gz tor-4ec9751c144465f6f70450545d68372f35f2ba78.zip |
guard->nickname is never NULL.
Diffstat (limited to 'src/or/entrynodes.c')
-rw-r--r-- | src/or/entrynodes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/entrynodes.c b/src/or/entrynodes.c index 4c6824760c..ee904aca5c 100644 --- a/src/or/entrynodes.c +++ b/src/or/entrynodes.c @@ -341,7 +341,7 @@ entry_guard_describe(const entry_guard_t *guard) static char buf[256]; tor_snprintf(buf, sizeof(buf), "%s ($%s)", - guard->nickname ? guard->nickname : "[bridge]", + strlen(guard->nickname) ? guard->nickname : "[bridge]", hex_str(guard->identity, DIGEST_LEN)); return buf; } |