Browse Source

Merge branch 'ticket28881_035' into maint-0.3.5

Nick Mathewson 5 years ago
parent
commit
702fd6f0f2
2 changed files with 6 additions and 0 deletions
  1. 4 0
      changes/ticket28881
  2. 2 0
      src/app/config/config.c

+ 4 - 0
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.

+ 2 - 0
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;