From f91c552af7c836e217e01bf4afdc55152382ff9f Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Wed, 25 Aug 2004 17:37:00 +0000 Subject: [PATCH] fix a seg fault on solaris svn:r2313 --- src/common/tortls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/tortls.c b/src/common/tortls.c index 78dea3b944..c685c12803 100644 --- a/src/common/tortls.c +++ b/src/common/tortls.c @@ -294,7 +294,7 @@ tor_tls_context_new(crypto_pk_env_t *identity, char nn2[1024]; int client_only; SSL_CTX **ctx; - sprintf(nn2, "%s ", nickname); + sprintf(nn2, "%s ", nickname ? nickname : "null"); tor_tls_init();