瀏覽代碼

fix a seg fault on solaris

svn:r2313
Roger Dingledine 20 年之前
父節點
當前提交
f91c552af7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/common/tortls.c

+ 1 - 1
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 <identity>", nickname);
+  sprintf(nn2, "%s <identity>", nickname ? nickname : "null");
 
   tor_tls_init();