diff options
author | Nick Mathewson <nickm@torproject.org> | 2010-09-30 18:37:53 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-10-01 18:14:27 -0400 |
commit | b5341314c17573db15a7cc5999f36569c764c462 (patch) | |
tree | 94da14bd12577e5751391084e93e597ecc29df62 /src/or/command.c | |
parent | f9ea242acabcaec0ab0fbd0de5e9999dfcdb0193 (diff) | |
download | tor-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.c | 7 |
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; } |