[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #3325 [Tor Client]: Log message when a client tries to connect to an invalid hostname is incorrect
#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs