[tor-bugs] #4530 [Tor Client]: tor_addr_port_lookup(): addr_out filled with random bytes if transient failure
Tor Bug Tracker & Wiki
torproject-admin at torproject.org
Mon Nov 21 13:32:29 UTC 2011
#4530: tor_addr_port_lookup(): addr_out filled with random bytes if transient
failure
------------------------+---------------------------------------------------
Reporter: troll_un | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: Tor Client | Version:
Keywords: easy | Parent:
Points: | Actualpoints:
------------------------+---------------------------------------------------
tor_addr_port_lookup() wrongly detect errors of tor_addr_lookup().
{{{
if (tor_addr_lookup(tmp, AF_UNSPEC, &addr) < 0)
}}}
tor_addr_lookup() returns non negative (return 1) on transient failure,
that leaves addr as non inited. tor_addr_copy(addr_out, &addr) filling
addr_out with random bytes.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/4530>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list