diff options
author | Mike Perry <mikeperry-git@fscked.org> | 2012-12-18 12:39:03 -0800 |
---|---|---|
committer | Mike Perry <mikeperry-git@fscked.org> | 2012-12-18 13:26:36 -0800 |
commit | b0fc18c37e0d30d9941109382df4b2b44f0f0ff8 (patch) | |
tree | 0ea76767b653d2238c039de678fc5929b3a862e5 /src/or/entrynodes.c | |
parent | ccaeef22e168af34e9b6a63d65ce17e58dd702e2 (diff) | |
download | tor-b0fc18c37e0d30d9941109382df4b2b44f0f0ff8.tar.gz tor-b0fc18c37e0d30d9941109382df4b2b44f0f0ff8.zip |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/entrynodes.c b/src/or/entrynodes.c index 066dbecc2a..fc7f6ed352 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 + |