tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 0af0f78dffc14919052d235de51a8fee71aaf1a5
parent a3e6f2467b55bdd122ef764a7d23e040c6395fb8
Author: Nick Mathewson <nickm@torproject.org>
Date:   Tue, 18 Dec 2018 13:52:39 -0500

Merge branch 'maint-0.3.5'

Diffstat:
Achanges/ticket28881 | 4++++
Msrc/app/config/config.c | 2++
2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/changes/ticket28881 b/changes/ticket28881 @@ -0,0 +1,4 @@ + o Code simplification and refactoring: + - When parsing a port configuration, make it more + obvious to static analyzer tools that we will always initialize the + address. Closes ticket 28881. diff --git a/src/app/config/config.c b/src/app/config/config.c @@ -6883,6 +6883,8 @@ parse_port_config(smartlist_t *out, for (; ports; ports = ports->next) { tor_addr_t addr; + tor_addr_make_unspec(&addr); + int port; int sessiongroup = SESSION_GROUP_UNSET; unsigned isolation = ISO_DEFAULT;