summaryrefslogtreecommitdiff
path: root/src/common/tortls.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-10-19 18:17:12 +0000
committerNick Mathewson <nickm@torproject.org>2004-10-19 18:17:12 +0000
commit62094ebd32c61421a24982c88b767826cdae75db (patch)
treecf81761ad8292a35a3f2cc9507012f94655158c5 /src/common/tortls.c
parentc7151d8bedc3ef4b79fb1b2d926a97150149166c (diff)
downloadtor-62094ebd32c61421a24982c88b767826cdae75db.tar.gz
tor-62094ebd32c61421a24982c88b767826cdae75db.zip
Tolerate NULL nicknames better
svn:r2567
Diffstat (limited to 'src/common/tortls.c')
-rw-r--r--src/common/tortls.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/tortls.c b/src/common/tortls.c
index 63924c26f6..17865d7294 100644
--- a/src/common/tortls.c
+++ b/src/common/tortls.c
@@ -297,7 +297,9 @@ tor_tls_context_new(crypto_pk_env_t *identity,
char nn2[1024];
int client_only;
SSL_CTX **ctx;
- sprintf(nn2, "%s <identity>", nickname ? nickname : "null");
+ if (!nickname)
+ nickname = "null";
+ sprintf(nn2, "%s <identity>", nickname);
tor_tls_init();