Skip to content

Commit

Permalink
Move tor_addr_make_null() to fascist_firewall_choose_address_ls()
Browse files Browse the repository at this point in the history
  • Loading branch information
neelchauhan committed Aug 19, 2018
1 parent 01ffb21 commit b21f7df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/core/or/policies.c
Expand Up @@ -1021,6 +1021,9 @@ fascist_firewall_choose_address_ls(const smartlist_t *lspecs,

tor_assert(ap);

tor_addr_make_null(&ap->addr, AF_UNSPEC);
ap->port = 0;

tor_addr_make_null(&addr_v4, AF_INET);
tor_addr_make_null(&addr_v6, AF_INET6);

Expand Down
3 changes: 0 additions & 3 deletions src/feature/hs/hs_common.c
Expand Up @@ -1691,9 +1691,6 @@ hs_get_extend_info_from_lspecs(const smartlist_t *lspecs,
extend_info_t *info = NULL;
tor_addr_port_t ap;

tor_addr_make_null(&ap.addr, AF_UNSPEC);
ap.port = 0;

tor_assert(lspecs);

SMARTLIST_FOREACH_BEGIN(lspecs, const link_specifier_t *, ls) {
Expand Down

0 comments on commit b21f7df

Please sign in to comment.