summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-04-25 15:43:37 +0000
committerRoger Dingledine <arma@torproject.org>2005-04-25 15:43:37 +0000
commitf3ea883ccd27e9ffca44cd0e55060cf1ce090c6a (patch)
tree7301f16adba990d95c3c4d4ec63b14226377f2ff
parent12ea3a26b2f4b85ac22b6b37a562a87e6cfc7dc1 (diff)
downloadtor-f3ea883ccd27e9ffca44cd0e55060cf1ce090c6a.tar.gz
tor-f3ea883ccd27e9ffca44cd0e55060cf1ce090c6a.zip
bugfix: stop trying to print a null pointer if an OR conn fails
because we didn't like its cert. svn:r4111
-rw-r--r--src/or/circuitbuild.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index d5afffb537..a1dc71c264 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -346,7 +346,8 @@ int circuit_handle_first_hop(circuit_t *circ) {
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)