[or-cvs] r17801: {tor} Fix bug in recent address.c patch: actually set the value of (tor/trunk/src/common)
nickm at seul.org
nickm at seul.org
Mon Dec 29 01:30:35 UTC 2008
Author: nickm
Date: 2008-12-28 20:30:35 -0500 (Sun, 28 Dec 2008)
New Revision: 17801
Modified:
tor/trunk/src/common/address.c
Log:
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.
Modified: tor/trunk/src/common/address.c
===================================================================
--- tor/trunk/src/common/address.c 2008-12-27 15:46:16 UTC (rev 17800)
+++ tor/trunk/src/common/address.c 2008-12-29 01:30:35 UTC (rev 17801)
@@ -544,6 +544,7 @@
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;
More information about the tor-commits
mailing list