summaryrefslogtreecommitdiff
path: root/src/or/dnsserv.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/dnsserv.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/dnsserv.c')
-rw-r--r--src/or/dnsserv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/dnsserv.c b/src/or/dnsserv.c
index b1e0ff104f..256dcbd75b 100644
--- a/src/or/dnsserv.c
+++ b/src/or/dnsserv.c
@@ -138,13 +138,13 @@ evdns_server_callback(struct evdns_server_request *req, void *_data)
* immediately if it's in the cache, or completely bogus, or automapped),
* and then attached to a circuit. */
log_info(LD_APP, "Passing request for %s to rewrite_and_attach.",
- escaped_safe_str(q->name));
+ escaped_safe_str_client(q->name));
q_name = tor_strdup(q->name); /* q could be freed in rewrite_and_attach */
connection_ap_handshake_rewrite_and_attach(conn, NULL, NULL);
/* Now, the connection is marked if it was bad. */
log_info(LD_APP, "Passed request for %s to rewrite_and_attach.",
- escaped_safe_str(q_name));
+ escaped_safe_str_client(q_name));
tor_free(q_name);
}
@@ -183,13 +183,13 @@ dnsserv_launch_request(const char *name, int reverse)
* immediately if it's in the cache, or completely bogus, or automapped),
* and then attached to a circuit. */
log_info(LD_APP, "Passing request for %s to rewrite_and_attach.",
- escaped_safe_str(name));
+ escaped_safe_str_client(name));
q_name = tor_strdup(name); /* q could be freed in rewrite_and_attach */
connection_ap_handshake_rewrite_and_attach(conn, NULL, NULL);
/* Now, the connection is marked if it was bad. */
log_info(LD_APP, "Passed request for %s to rewrite_and_attach.",
- escaped_safe_str(q_name));
+ escaped_safe_str_client(q_name));
tor_free(q_name);
return 0;
}