summaryrefslogtreecommitdiff
path: root/src/or/circuitlist.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/circuitlist.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/circuitlist.c')
-rw-r--r--src/or/circuitlist.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c
index 02bf925ba5..7d3486d278 100644
--- a/src/or/circuitlist.c
+++ b/src/or/circuitlist.c
@@ -1089,9 +1089,9 @@ _circuit_mark_for_close(circuit_t *circ, int reason, int line,
tor_assert(ocirc->rend_data);
/* treat this like getting a nack from it */
log_info(LD_REND, "Failed intro circ %s to %s (awaiting ack). "
- "Removing from descriptor.",
- safe_str(ocirc->rend_data->onion_address),
- safe_str(build_state_get_exit_nickname(ocirc->build_state)));
+ "Removing from descriptor.",
+ safe_str_client(ocirc->rend_data->onion_address),
+ safe_str_client(build_state_get_exit_nickname(ocirc->build_state)));
rend_client_remove_intro_point(ocirc->build_state->chosen_exit,
ocirc->rend_data);
}