summaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2009-12-15 17:23:36 -0500
committerNick Mathewson <nickm@torproject.org>2009-12-15 17:25:34 -0500
commitfcbd65b45cbf203b00e6752dabc7bc5b8dffdbcf (patch)
tree5c27f43119bad03fc2465af47105f801bbe3dc26 /src/or/circuitbuild.c
parenta8190b09a319bf6b1bac7608ea77f828f9970056 (diff)
downloadtor-fcbd65b45cbf203b00e6752dabc7bc5b8dffdbcf.tar.gz
tor-fcbd65b45cbf203b00e6752dabc7bc5b8dffdbcf.zip
Refactor the safe_str_*() API to make more sense.
The new rule is: safe_str_X() means "this string is a piece of X information; make it safe to log." safe_str() on its own means "this string is a piece of who-knows-what; make it safe to log".
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r--src/or/circuitbuild.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index 34d9ba6f20..f5b07753b5 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -1230,7 +1230,7 @@ circuit_handle_first_hop(origin_circuit_t *circ)
const char *name = strlen(firsthop->extend_info->nickname) ?
firsthop->extend_info->nickname : fmt_addr(&firsthop->extend_info->addr);
log_info(LD_CIRC, "Next router is %s: %s ",
- safe_str(name), msg?msg:"???");
+ safe_str_client(name), msg?msg:"???");
circ->_base.n_hop = extend_info_dup(firsthop->extend_info);
if (should_launch) {