From 62094ebd32c61421a24982c88b767826cdae75db Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 19 Oct 2004 18:17:12 +0000 Subject: Tolerate NULL nicknames better svn:r2567 --- src/common/tortls.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/common') 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 ", nickname ? nickname : "null"); + if (!nickname) + nickname = "null"; + sprintf(nn2, "%s ", nickname); tor_tls_init(); -- cgit v1.2.3-54-g00ecf