瀏覽代碼

bugfix: stop trying to print a null pointer if an OR conn fails
because we didn't like its cert.


svn:r4111

Roger Dingledine 20 年之前
父節點
當前提交
f3ea883ccd
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/or/circuitbuild.c

+ 2 - 1
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)