[or-cvs] Tolerate NULL nicknames better
Nick Mathewson
nickm at seul.org
Tue Oct 19 18:17:14 UTC 2004
Update of /home/or/cvsroot/src/common
In directory moria.mit.edu:/tmp/cvs-serv2783/src/common
Modified Files:
tortls.c
Log Message:
Tolerate NULL nicknames better
Index: tortls.c
===================================================================
RCS file: /home/or/cvsroot/src/common/tortls.c,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -d -r1.68 -r1.69
--- tortls.c 16 Oct 2004 22:28:11 -0000 1.68
+++ tortls.c 19 Oct 2004 18:17:12 -0000 1.69
@@ -297,7 +297,9 @@
char nn2[1024];
int client_only;
SSL_CTX **ctx;
- sprintf(nn2, "%s <identity>", nickname ? nickname : "null");
+ if (!nickname)
+ nickname = "null";
+ sprintf(nn2, "%s <identity>", nickname);
tor_tls_init();
More information about the tor-commits
mailing list