summaryrefslogtreecommitdiff
path: root/src/or/relay.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-09-22 00:44:07 +0000
committerNick Mathewson <nickm@torproject.org>2006-09-22 00:44:07 +0000
commit6b3f6afb5863e670cf69c1c5219e1177e2ab26b2 (patch)
treedc522721106de4817b0e9de7554b049e34524b52 /src/or/relay.c
parent213658f117f88eaeb21ffd61451155f451f67604 (diff)
downloadtor-6b3f6afb5863e670cf69c1c5219e1177e2ab26b2.tar.gz
tor-6b3f6afb5863e670cf69c1c5219e1177e2ab26b2.zip
r8895@Kushana: nickm | 2006-09-21 20:05:11 -0400
Debug client-side reverse dns code. svn:r8452
Diffstat (limited to 'src/or/relay.c')
-rw-r--r--src/or/relay.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/relay.c b/src/or/relay.c
index 3e9690fbc9..8d9ce04fb1 100644
--- a/src/or/relay.c
+++ b/src/or/relay.c
@@ -865,7 +865,8 @@ connection_edge_process_relay_cell_not_open(
"Dropping.");
return 0;
}
- tor_assert(conn->socks_request->command == SOCKS_COMMAND_RESOLVE);
+ tor_assert(conn->socks_request->command == SOCKS_COMMAND_RESOLVE ||
+ conn->socks_request->command == SOCKS_COMMAND_RESOLVE_PTR);
answer_len = cell->payload[RELAY_HEADER_SIZE+1];
if (rh->length < 2 || answer_len+2>rh->length) {
log_warn(LD_PROTOCOL, "Dropping malformed 'resolved' cell");