diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-12-29 01:30:35 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-12-29 01:30:35 +0000 |
commit | 94507f1b6d563d301ef5ad284141105ebb3e9d2f (patch) | |
tree | 85b5c019ce63aeb176abdc378223473864fc3774 | |
parent | ccda4e481c612f939fde0e591c027fb5d08d64ca (diff) | |
download | tor-94507f1b6d563d301ef5ad284141105ebb3e9d2f.tar.gz tor-94507f1b6d563d301ef5ad284141105ebb3e9d2f.zip |
Fix bug in recent address.c patch: actually set the value of address * to 0.0.0.0 as we did before. This makes CMP_EXACT comparisons with bitmask 0 work on address * again.
svn:r17801
-rw-r--r-- | src/common/address.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/address.c b/src/common/address.c index 3f2103c1ce..561fa07b74 100644 --- a/src/common/address.c +++ b/src/common/address.c @@ -544,6 +544,7 @@ tor_addr_parse_mask_ports(const char *s, tor_addr_t *addr_out, if (!strcmp(address, "*")) { family = AF_INET; /* AF_UNSPEC ???? XXXX_IP6 */ + tor_addr_from_ipv4h(addr_out, 0); any_flag = 1; } else if (tor_inet_pton(AF_INET6, address, &in6_tmp) > 0) { family = AF_INET6; |