mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
e425fc7804
The old cache had problems: * It needed to be manually preloaded. (It didn't remember any address you didn't tell it to remember) * It was AF_INET only. * It looked at its cache even if the sandbox wasn't turned on. * It couldn't remember errors. * It had some memory management problems. (You can't use memcpy to copy an addrinfo safely; it has pointers in.) This patch fixes those issues, and moves to a hash table. Fixes bug 11970; bugfix on 0.2.5.1-alpha.
8 lines
435 B
Plaintext
8 lines
435 B
Plaintext
o Minor bugfixes (linux seccomp sandbox):
|
|
- Refactor the getaddrinfo workaround that the seccomp sandbox
|
|
uses to avoid calling getaddrinfo() after installing the sandbox
|
|
filters. Previously, it preloaded a cache with the IPv4 address
|
|
for our hostname, and nothing else. Now, it loads the cache with
|
|
every address that it used to initialize the Tor process. Fixes
|
|
bug 11970; bugfix on 0.2.5.1-alpha.
|