[tor-bugs] #3325 [Tor Client]: Log message when a client tries to connect to an invalid hostname is incorrect
Tor Bug Tracker & Wiki
torproject-admin at torproject.org
Wed Jun 1 09:55:20 UTC 2011
#3325: Log message when a client tries to connect to an invalid hostname is
incorrect
------------------------+---------------------------------------------------
Reporter: rransom | Owner: rransom
Type: defect | Status: new
Priority: trivial | Milestone: Tor: 0.2.2.x-final
Component: Tor Client | Version:
Keywords: easy | Parent:
Points: | Actualpoints:
------------------------+---------------------------------------------------
In `connection_ap_handshake_rewrite_and_attach`:
{{{
addresstype = parse_extended_hostname(socks->address,
remapped_to_exit || options->AllowDotExit);
if (addresstype == BAD_HOSTNAME) {
log_warn(LD_APP, "Invalid onion hostname %s; rejecting",
safe_str_client(socks->address));
}}}
`parse_extended_hostname` also returns `BAD_HOSTNAME` for `.exit`
hostnames when AllowDotExit is off.
Also, `parse_extended_hostname`'s documentation comment does not mention
`BAD_HOSTNAME`.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/3325>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list