]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
fix a seg fault on solaris
authorRoger Dingledine <arma@torproject.org>
Wed, 25 Aug 2004 17:37:00 +0000 (17:37 +0000)
committerRoger Dingledine <arma@torproject.org>
Wed, 25 Aug 2004 17:37:00 +0000 (17:37 +0000)
svn:r2313

src/common/tortls.c

index 78dea3b944da2bf8f76f9fe3385ea65be0832353..c685c12803fbbbaa0d3194d4e22952ae6a73efd1 100644 (file)
@@ -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 <identity>", nickname);
+  sprintf(nn2, "%s <identity>", nickname ? nickname : "null");
 
   tor_tls_init();