[tor-bugs] #15504 [Torsocks]: torsocks's getaddrinfo() is broken.
Tor Bug Tracker & Wiki
blackhole at torproject.org
Sun Mar 29 17:49:25 UTC 2015
#15504: torsocks's getaddrinfo() is broken.
----------------------+-------------------------
Reporter: yawning | Owner: dgoulet
Type: defect | Status: new
Priority: normal | Milestone:
Component: Torsocks | Version:
Keywords: | Actual Points:
Parent ID: | Points:
----------------------+-------------------------
torsocks's getaddrinfo() implementation does not respect `AI_NUMERICHOST`.
This is wrong because it will do the resolution anyway, and things that
expect to be able to use `getaddrinfo()` as a super `inet_pton()` break.
The correct thing to do is to check if the string is an address and return
`EAI_NONAME` if it's not, without doing the tor resolution.
With this, `#15497` and `#13294` all fixed, `aria2c` actually works with
torsocks again, as long as async dns is disabled. Yay.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/15504>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list