Remove redundant boolean expression from firewall_is_fascist_impl()
commit2debcc869fa6672d85b238a03ab0988ac74547e4
authorteor <teor2345@gmail.com>
Fri, 16 Dec 2016 11:43:46 +0000 (16 22:43 +1100)
committerNick Mathewson <nickm@torproject.org>
Fri, 13 Jan 2017 21:49:33 +0000 (13 16:49 -0500)
tree45e6719cab97a4882bd3252d92f67dfae991820a
parent0417dae5808ddf86aed3a9b9a6883fa8f0922d2e
Remove redundant boolean expression from firewall_is_fascist_impl()

Let A = UseBridges
Let B = ClientUseIPv4

Then firewall_is_fascist_impl expands and simplifies to:
B || (!(A || ...) && A)
B || (!A && ... && A)
B || 0
B
src/or/policies.c