summaryrefslogtreecommitdiff
path: root/src/or/command.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-09-30 18:37:53 -0400
committerNick Mathewson <nickm@torproject.org>2010-10-01 18:14:27 -0400
commitb5341314c17573db15a7cc5999f36569c764c462 (patch)
tree94da14bd12577e5751391084e93e597ecc29df62 /src/or/command.c
parentf9ea242acabcaec0ab0fbd0de5e9999dfcdb0193 (diff)
downloadtor-b5341314c17573db15a7cc5999f36569c764c462.tar.gz
tor-b5341314c17573db15a7cc5999f36569c764c462.zip
Implement a few more node-based functions
Some of these functions only work for routerinfo-based nodes, and as such are only usable for advisory purposes. Fortunately, our uses of them are compatible with this limitation.
Diffstat (limited to 'src/or/command.c')
-rw-r--r--src/or/command.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/or/command.c b/src/or/command.c
index 46713a5138..3a5c6c01a2 100644
--- a/src/or/command.c
+++ b/src/or/command.c
@@ -273,10 +273,13 @@ command_process_create_cell(cell_t *cell, or_connection_t *conn)
"Received CREATE cell (circID %d) for known circ. "
"Dropping (age %d).",
cell->circ_id, (int)(time(NULL) - conn->_base.timestamp_created));
- if (node)
+ if (node) {
+ char *p = esc_for_log(node_get_platform(node));
log_fn(LOG_PROTOCOL_WARN, LD_PROTOCOL,
"Details: nickname \"%s\", platform %s.",
- node_get_nickname(node), escaped(node_get_platform(node)));
+ node_get_nickname(node), p);
+ tor_free(p);
+ }
return;
}