diff options
author | Sebastian Hahn <sebastian@torproject.org> | 2011-07-07 05:27:20 +0200 |
---|---|---|
committer | Sebastian Hahn <sebastian@torproject.org> | 2011-07-07 05:38:38 +0200 |
commit | 3ab09763ced6d892cd72956e53f2dfb804ec0a7c (patch) | |
tree | debfc504fc02b1f279ee39794a151043515fd31d /src | |
parent | 1a016c923348c125d79d2e92c2ae9fa2fa2a5af8 (diff) | |
download | tor-3ab09763ced6d892cd72956e53f2dfb804ec0a7c.tar.gz tor-3ab09763ced6d892cd72956e53f2dfb804ec0a7c.zip |
Correctly send a SUCCEEDED event for rdns requests
The issue was that we overlooked the possibility of reverse DNS success
at the end of connection_ap_handshake_socks_resolved(). Issue discovered
by katmagic, thanks!
Diffstat (limited to 'src')
-rw-r--r-- | src/or/connection_edge.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index 78b1b92de9..d4d7e1c73c 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -2611,7 +2611,8 @@ connection_ap_handshake_socks_resolved(edge_connection_t *conn, } connection_ap_handshake_socks_reply(conn, buf, replylen, (answer_type == RESOLVED_TYPE_IPV4 || - answer_type == RESOLVED_TYPE_IPV6) ? + answer_type == RESOLVED_TYPE_IPV6 || + answer_type == RESOLVED_TYPE_HOSTNAME) ? 0 : END_STREAM_REASON_RESOLVEFAILED); } |