aboutsummaryrefslogtreecommitdiff
path: root/src/or/entrynodes.c
diff options
context:
space:
mode:
authorMike Perry <mikeperry-git@fscked.org>2012-12-18 12:39:03 -0800
committerMike Perry <mikeperry-git@fscked.org>2012-12-18 13:26:36 -0800
commitb0fc18c37e0d30d9941109382df4b2b44f0f0ff8 (patch)
tree0ea76767b653d2238c039de678fc5929b3a862e5 /src/or/entrynodes.c
parentccaeef22e168af34e9b6a63d65ce17e58dd702e2 (diff)
downloadtor-b0fc18c37e0d30d9941109382df4b2b44f0f0ff8.tar
tor-b0fc18c37e0d30d9941109382df4b2b44f0f0ff8.tar.gz
Changes from Nick's code review 'part 1'
I think this is actually his third code review of this branch so far.
Diffstat (limited to 'src/or/entrynodes.c')
-rw-r--r--src/or/entrynodes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/entrynodes.c b/src/or/entrynodes.c
index 066dbecc2..fc7f6ed35 100644
--- a/src/or/entrynodes.c
+++ b/src/or/entrynodes.c
@@ -1194,7 +1194,7 @@ entry_guards_update_state(or_state_t *state)
d, e->chosen_by_version, t);
next = &(line->next);
}
- if (e->circ_attempts) {
+ if (e->circ_attempts > 0) {
*next = line = tor_malloc_zero(sizeof(config_line_t));
line->key = tor_strdup("EntryGuardPathBias");
/* In the long run: circuit_success ~= successful_circuit_close +