diff options
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/tortls.c | 4 |
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(); |