aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-12-17 09:38:42 -0500
committerNick Mathewson <nickm@torproject.org>2018-12-18 13:52:25 -0500
commit4894d44ab8beee587c99a1765236813d445b392e (patch)
treeda534fb505349ee831279e8fe23499b9e6011abf /src
parent94a79981580d6260597f799bc1a163c8e6f07acd (diff)
downloadtor-4894d44ab8beee587c99a1765236813d445b392e.tar.gz
tor-4894d44ab8beee587c99a1765236813d445b392e.zip
Always initialize addr in parse_port_config()
It was always analyzed before use, but scan-build wasn't able to persuade itself of that. Closes ticket 28881.
Diffstat (limited to 'src')
-rw-r--r--src/app/config/config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/app/config/config.c b/src/app/config/config.c
index 81cc3e378f..4a8f94da0e 100644
--- a/src/app/config/config.c
+++ b/src/app/config/config.c
@@ -6913,6 +6913,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;