mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
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!
This commit is contained in:
parent
1a016c9233
commit
3ab09763ce
5
changes/bug3536
Normal file
5
changes/bug3536
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
o Minor bugfixes:
|
||||||
|
- Send a SUCCEEDED stream event to the controller when a reverse
|
||||||
|
resolve succeeded. Fixes bug 3536; bugfix on 0.0.8pre1. Issue
|
||||||
|
discovered by katmagic.
|
||||||
|
|
@ -2611,7 +2611,8 @@ connection_ap_handshake_socks_resolved(edge_connection_t *conn,
|
|||||||
}
|
}
|
||||||
connection_ap_handshake_socks_reply(conn, buf, replylen,
|
connection_ap_handshake_socks_reply(conn, buf, replylen,
|
||||||
(answer_type == RESOLVED_TYPE_IPV4 ||
|
(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);
|
0 : END_STREAM_REASON_RESOLVEFAILED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user