tor/src
David Goulet 5895aafe7e addr: Safeguard last resolved address index access
The last resolved address cache uses an index that is mapped to an address
family (AF_INET and AF_INET6).

This commit adds a conversion function from af to index and change the code to
use that all the time only.

In the process, this commit fixes a bug that the last resolved address
accessors were using the af value insted of the index.

Spotted by nickm during review

Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-06-24 13:51:37 -04:00
..
app addr: Safeguard last resolved address index access 2020-06-24 13:51:37 -04:00
config python: Add __future__ imports for python 3 compatibility 2019-12-12 15:58:51 +10:00
core addr: Refactor is_local_addr() to support IPv6 2020-06-24 13:51:37 -04:00
ext Merge branch 'maint-0.4.3' 2020-05-06 16:55:41 -04:00
feature addr: Remove resolve_my_address_v4() 2020-06-24 13:51:37 -04:00
lib Merge remote-tracking branch 'tor-github/pr/1888/head' 2020-06-09 15:44:58 -04:00
rust rust/protover: Fix protocol version support error handling 2020-05-18 21:50:35 +10:00
test test: Modernize find_my_address() unit test 2020-06-24 13:51:37 -04:00
tools net: Make all address bytes functions take uint8_t * 2020-04-30 06:54:42 +10:00
trunnel Update Trunnel for new machine_ctr field. 2020-06-08 18:05:34 -05:00
win32 Bump to 0.4.4.1-alpha-dev 2020-06-16 19:38:38 -04:00
arch_goals.md Document high-level architecture goals 2019-12-10 16:47:38 -06:00
include.am Move winprocess_sys into a new low-level hardening module 2020-02-24 07:49:39 -05:00
mainpage.md doxygen: add a link to src-ref on mainpage.md. 2020-05-19 09:44:36 -04:00