[or-cvs] bugfix: stop trying to print a null pointer if an OR conn f...

Roger Dingledine arma at seul.org
Mon Apr 25 15:43:40 UTC 2005


Update of /home2/or/cvsroot/tor/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/or

Modified Files:
	circuitbuild.c 
Log Message:
bugfix: stop trying to print a null pointer if an OR conn fails
because we didn't like its cert.


Index: circuitbuild.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/circuitbuild.c,v
retrieving revision 1.107
retrieving revision 1.108
diff -u -d -r1.107 -r1.108
--- circuitbuild.c	7 Apr 2005 21:07:18 -0000	1.107
+++ circuitbuild.c	25 Apr 2005 15:43:37 -0000	1.108
@@ -346,7 +346,8 @@
 void circuit_n_conn_done(connection_t *or_conn, int status) {
   circuit_t *circ;
 
-  log_fn(LOG_DEBUG,"or_conn to %s, status=%d", or_conn->nickname, status);
+  log_fn(LOG_DEBUG,"or_conn to %s, status=%d",
+         or_conn->nickname ? or_conn->nickname : "NULL", status);
 
   for (circ=global_circuitlist;circ;circ = circ->next) {
     if (circ->marked_for_close)



More information about the tor-commits mailing list