Tolerate NULL nicknames better

svn:r2567
This commit is contained in:
Nick Mathewson 2004-10-19 18:17:12 +00:00
parent c7151d8bed
commit 62094ebd32

View File

@ -297,7 +297,9 @@ tor_tls_context_new(crypto_pk_env_t *identity,
char nn2[1024]; char nn2[1024];
int client_only; int client_only;
SSL_CTX **ctx; SSL_CTX **ctx;
sprintf(nn2, "%s <identity>", nickname ? nickname : "null"); if (!nickname)
nickname = "null";
sprintf(nn2, "%s <identity>", nickname);
tor_tls_init(); tor_tls_init();