[or-cvs] fix a seg fault on solaris
Roger Dingledine
arma at seul.org
Wed Aug 25 17:37:03 UTC 2004
Update of /home/or/cvsroot/src/common
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/common
Modified Files:
tortls.c
Log Message:
fix a seg fault on solaris
Index: tortls.c
===================================================================
RCS file: /home/or/cvsroot/src/common/tortls.c,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -d -r1.64 -r1.65
--- tortls.c 22 Jul 2004 23:06:28 -0000 1.64
+++ tortls.c 25 Aug 2004 17:37:00 -0000 1.65
@@ -294,7 +294,7 @@
char nn2[1024];
int client_only;
SSL_CTX **ctx;
- sprintf(nn2, "%s <identity>", nickname);
+ sprintf(nn2, "%s <identity>", nickname ? nickname : "null");
tor_tls_init();
More information about the tor-commits
mailing list