From 91027218e29090b18d42e1868367cc2a9e149900 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 14 Feb 2013 11:48:47 -0500 Subject: Add some code to bluntly prevent duplicate guards from getting added Apparently something in the directory guard code made it possible for the same node to get added as a guard over and over when there were no actual running guard nodes. --- src/or/or.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/or/or.h') diff --git a/src/or/or.h b/src/or/or.h index 04640d050..df69674d3 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -2233,6 +2233,9 @@ typedef struct node_t { /** Local info: we treat this node as if it rejects everything */ unsigned int rejects_all:1; + /** Local info: this node is in our list of guards */ + unsigned int using_as_guard:1; + /* Local info: derived. */ /** True if the IPv6 OR port is preferred over the IPv4 OR port. */ -- cgit v1.2.3