num_bridges_usable(): only count configured bridges.
commit8015979eeba2c8b10fb058318628debf228fb023
authorNick Mathewson <nickm@torproject.org>
Fri, 31 May 2019 16:19:29 +0000 (31 12:19 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 31 May 2019 16:28:42 +0000 (31 12:28 -0400)
treeae2fc7cb64e9702f2161823367ff0902691d62c0
parent5b3c8865842f3b12d3ea35db19e8feb135bb46dc
num_bridges_usable(): only count configured bridges.

When this function was implemented, it counted all the entry guards
in the bridge set.  But this included previously configured bridges,
as well as currently configured ones!  Instead, only count the
_filtered_ bridges (ones that are configured and possibly reachable)
as maybe usable.

Fixes bug 29875; bugfix on 0.3.0.1-alpha.
src/feature/client/entrynodes.c