diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-03-06 13:20:21 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-03-06 13:20:21 -0500 |
commit | ed14888e7e9ffb1877ddb7780b5033314d244fb3 (patch) | |
tree | c50d3ec32e2bece12d0032b87aaeaed6e9513456 /src/or/policies.c | |
parent | 9f614507b6db75fff5491be4c6eeed07c2c3818d (diff) | |
parent | 8b01fd7badc893b849d4394a2b72d422eecf7913 (diff) | |
download | tor-ed14888e7e9ffb1877ddb7780b5033314d244fb3.tar.gz tor-ed14888e7e9ffb1877ddb7780b5033314d244fb3.zip |
Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2
Conflicts:
src/or/policies.c
Diffstat (limited to 'src/or/policies.c')
-rw-r--r-- | src/or/policies.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/policies.c b/src/or/policies.c index 38c2f7c0fd..e48f42058f 100644 --- a/src/or/policies.c +++ b/src/or/policies.c @@ -888,6 +888,8 @@ exit_policy_is_general_exit_helper(smartlist_t *policy, int port) memset(subnet_status, 0, sizeof(subnet_status)); SMARTLIST_FOREACH(policy, addr_policy_t *, p, { + if (tor_addr_family(&p->addr) != AF_INET) + continue; /* IPv4 only for now */ if (p->prt_min > port || p->prt_max < port) continue; /* Doesn't cover our port. */ mask = 0; |