diff options
author | David Goulet <dgoulet@torproject.org> | 2017-11-28 19:09:13 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-11-28 19:12:56 -0500 |
commit | 91cee3c9e73aba089804cd88305115fc3ab1f76c (patch) | |
tree | fa6c03323ff8edb5e029ccaa31243e077e5a0d03 /src/or/entrynodes.c | |
parent | b1c4ab0bec5b2b07e7e5358f449e352bb34c75d0 (diff) | |
download | tor-91cee3c9e73aba089804cd88305115fc3ab1f76c.tar.gz tor-91cee3c9e73aba089804cd88305115fc3ab1f76c.zip |
Guard: Don't pick ourselves as a possible Guard
TROVE-2017-12. Severity: Medium
Thankfully, tor will close any circuits that we try to extend to
ourselves so this is not problematic but annoying.
Part of #21534.
Diffstat (limited to 'src/or/entrynodes.c')
-rw-r--r-- | src/or/entrynodes.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/entrynodes.c b/src/or/entrynodes.c index d762afdcfe..0109da8e01 100644 --- a/src/or/entrynodes.c +++ b/src/or/entrynodes.c @@ -740,7 +740,8 @@ node_is_possible_guard(const node_t *node) node->is_stable && node->is_fast && node->is_valid && - node_is_dir(node)); + node_is_dir(node) && + !router_digest_is_me(node->identity)); } /** |