[tor-bugs] #21425 [Core Tor/Tor]: entry_list_is_constrained() should look at the guard_selection_t object
Tor Bug Tracker & Wiki
blackhole at torproject.org
Mon Feb 12 22:09:12 UTC 2018
#21425: entry_list_is_constrained() should look at the guard_selection_t object
-------------------------------------------------+-------------------------
Reporter: nickm | Owner: (none)
Type: defect | Status:
| needs_revision
Priority: Medium | Milestone: Tor:
| 0.3.3.x-final
Component: Core Tor/Tor | Version:
Severity: Normal | Resolution:
Keywords: guards, 031-deferred-20170425, | Actual Points:
review-group-18 |
Parent ID: #20822 | Points: .5
Reviewer: asn | Sponsor:
| SponsorV-can
-------------------------------------------------+-------------------------
Comment (by teor):
This patch looks good.
Please make the "50" into a #define constant with an appropriate name.
We usually use names like MAX_CONSTRAINED_ENTRY_LIST_COUNT.
This line doesn't need the "?:", the condition is already boolean:
{{{
return (gs->sampled_entry_guards->capacity > 50) ? 1 : 0;
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/21425#comment:20>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list