summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-01-02 10:10:28 -0500
committerNick Mathewson <nickm@torproject.org>2018-01-02 10:10:28 -0500
commitfb5877b9721dcc0d140c2c7c8d16d0b656bbf5d7 (patch)
tree9ccf9eb4d9a97dca9d12c81ddaefbb4a2398c7da /src
parent08469a338ab524e233f357d46504338fd64dedf9 (diff)
parent8a7767603a9ac826f39505fc9ea8c08385f6dfd6 (diff)
downloadtor-fb5877b9721dcc0d140c2c7c8d16d0b656bbf5d7.tar.gz
tor-fb5877b9721dcc0d140c2c7c8d16d0b656bbf5d7.zip
Merge branch 'maint-0.3.0' into maint-0.3.1
Diffstat (limited to 'src')
-rw-r--r--src/or/policies.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/policies.c b/src/or/policies.c
index 3d49a6110c..9e43fd78bb 100644
--- a/src/or/policies.c
+++ b/src/or/policies.c
@@ -865,6 +865,8 @@ fascist_firewall_choose_address_base(const tor_addr_t *ipv4_addr,
ap->port = result->port;
return 1;
} else {
+ tor_addr_make_null(&ap->addr, AF_UNSPEC);
+ ap->port = 0;
return 0;
}
}