diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-03-06 13:23:02 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-03-06 13:23:02 -0500 |
commit | 07b8b439c4bee7545a26a61160b2860b18b88185 (patch) | |
tree | 0450bed147fe85aff52335f46f63c05a28f64c16 /src/or/policies.c | |
parent | c6d8e75dc3aafe7b9a658221ac3bcd4a5936ff9b (diff) | |
parent | ed14888e7e9ffb1877ddb7780b5033314d244fb3 (diff) | |
download | tor-07b8b439c4bee7545a26a61160b2860b18b88185.tar.gz tor-07b8b439c4bee7545a26a61160b2860b18b88185.zip |
Merge remote branch 'origin/maint-0.2.2'
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 2cf99820b1..6738b484ae 100644 --- a/src/or/policies.c +++ b/src/or/policies.c @@ -901,6 +901,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; |