mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
Fix a crash if you enable FascistFirewall but not FirewallPorts.
Reported by Frediano Ziglio. svn:r6746
This commit is contained in:
parent
0bbc4aca9b
commit
51454157a0
@ -2216,7 +2216,7 @@ options_validate(or_options_t *old_options, or_options_t *options,
|
||||
return -1;
|
||||
|
||||
if (options->FascistFirewall && !options->ReachableAddresses) {
|
||||
if (smartlist_len(options->FirewallPorts)) {
|
||||
if (options->FirewallPorts && smartlist_len(options->FirewallPorts)) {
|
||||
/* We already have firewall ports set, so migrate them to
|
||||
* ReachableAddresses, which will set ReachableORAddresses and
|
||||
* ReachableDirAddresses if they aren't set explicitly. */
|
||||
|
Loading…
Reference in New Issue
Block a user