diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-02-17 11:46:38 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-02-17 11:47:25 -0500 |
commit | 823fb68a14b551fc1f40e904428b3e31732441c5 (patch) | |
tree | 7f16dd13d65af178aca46c87d13d5f2dfb0ba213 | |
parent | 5dbbd6bc392892df63a02cf601f94fa1fae6ebfc (diff) | |
download | tor-823fb68a14b551fc1f40e904428b3e31732441c5.tar.gz tor-823fb68a14b551fc1f40e904428b3e31732441c5.zip |
Remove a redundant check in ..transition_affects_guards()
scan-build found that we we checking UseEntryGuards twice.
Fixes bug 21492.
-rw-r--r-- | changes/bug21492 | 5 | ||||
-rw-r--r-- | src/or/config.c | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/changes/bug21492 b/changes/bug21492 new file mode 100644 index 0000000000..2ed7947771 --- /dev/null +++ b/changes/bug21492 @@ -0,0 +1,5 @@ + o Minor bugfixes (correctness): + - Remove a redundant check for the UseEntryGuards option from the + options_transition_affects_guards() function. Fixes bug 21492; + bugfix on 0.3.0.1-alpha. + diff --git a/src/or/config.c b/src/or/config.c index e979930b10..a527571cb0 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -1587,7 +1587,6 @@ options_transition_affects_guards(const or_options_t *old, return (old->UseEntryGuards != new->UseEntryGuards || old->UseBridges != new->UseBridges || - old->UseEntryGuards != new->UseEntryGuards || old->ClientUseIPv4 != new->ClientUseIPv4 || old->ClientUseIPv6 != new->ClientUseIPv6 || old->FascistFirewall != new->FascistFirewall || |