mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
addr: Initialize resolved address cache to NULL address
Related to #40022 Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
@@ -42,13 +42,15 @@ typedef enum {
|
||||
} fn_address_ret_t;
|
||||
|
||||
/** Last resolved addresses. */
|
||||
static tor_addr_t last_resolved_addrs[IDX_SIZE];
|
||||
static tor_addr_t last_resolved_addrs[IDX_SIZE] =
|
||||
{ TOR_ADDR_NULL, TOR_ADDR_NULL, TOR_ADDR_NULL };
|
||||
|
||||
/** Last suggested addresses.
|
||||
*
|
||||
* These addresses come from a NETINFO cell from a trusted relay (currently
|
||||
* only authorities). We only use those in last resort. */
|
||||
static tor_addr_t last_suggested_addrs[IDX_SIZE];
|
||||
static tor_addr_t last_suggested_addrs[IDX_SIZE] =
|
||||
{ TOR_ADDR_NULL, TOR_ADDR_NULL, TOR_ADDR_NULL };
|
||||
|
||||
static inline int
|
||||
af_to_idx(const int family)
|
||||
|
||||
Reference in New Issue
Block a user