aboutsummaryrefslogtreecommitdiff
path: root/src/feature/nodelist/nodelist.c
diff options
context:
space:
mode:
authorNeel Chauhan <neel@neelc.org>2019-08-25 20:22:57 -0400
committerGeorge Kadianakis <desnacked@riseup.net>2019-09-05 17:02:45 +0300
commitbe4a60945d724ca964d9d53f57cad6190a500077 (patch)
treec016a3384edd307268d5ff2ff422505c6e1d9764 /src/feature/nodelist/nodelist.c
parent6ba05eea8efcfc1f9b4a382ee1849e49ea242891 (diff)
downloadtor-be4a60945d724ca964d9d53f57cad6190a500077.tar.gz
tor-be4a60945d724ca964d9d53f57cad6190a500077.zip
Check IPv6 exit policies on microdescriptors in node_exit_policy_rejects_all()
Diffstat (limited to 'src/feature/nodelist/nodelist.c')
-rw-r--r--src/feature/nodelist/nodelist.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/feature/nodelist/nodelist.c b/src/feature/nodelist/nodelist.c
index 21914c6c6d..6ae8d2bcb1 100644
--- a/src/feature/nodelist/nodelist.c
+++ b/src/feature/nodelist/nodelist.c
@@ -1424,8 +1424,7 @@ node_exit_policy_rejects_all(const node_t *node)
if (node->ri)
return node->ri->policy_is_reject_star;
else if (node->md)
- return node->md->exit_policy == NULL ||
- short_policy_is_reject_star(node->md->exit_policy);
+ return node->md->policy_is_reject_star;
else
return 1;
}