diff options
author | Phil Davis <phil.davis@inf.org> | 2015-11-10 11:23:57 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2015-11-10 11:23:57 +0545 |
commit | f3d64bb5ee20b2055a7cdf605b8201f1cb68ff70 (patch) | |
tree | ec895670fe904391e7eee84e41a610f3e620491f /usr/local | |
parent | 7b41790bc7665807c125eda977419bb6d94c999d (diff) | |
download | pfsense-f3d64bb5ee20b2055a7cdf605b8201f1cb68ff70.zip pfsense-f3d64bb5ee20b2055a7cdf605b8201f1cb68ff70.tar.gz |
Unbound advanced Invoming TCP Buffers validation
There is a variable cut-paste error here. Actually it never makes any difference in practice because outgoing_num_tcp and incoming_num_tcp are both set, so the logic comes out the same.
I noticed this while reviewing stuff in master for 2.3-ALPHA - might as well back-port stuff like this so that nobody who notices will worry about it in RELENG_2_2.
Diffstat (limited to 'usr/local')
-rw-r--r-- | usr/local/www/services_unbound_advanced.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/services_unbound_advanced.php b/usr/local/www/services_unbound_advanced.php index 8c3d764..480cc7e 100644 --- a/usr/local/www/services_unbound_advanced.php +++ b/usr/local/www/services_unbound_advanced.php @@ -100,7 +100,7 @@ if ($_POST) { if (isset($_POST['outgoing_num_tcp']) && !in_array($_POST['outgoing_num_tcp'], array('0', '10', '20', '30', '40', '50'), true)) { $input_errors[] = "A valid value must be specified for Outgoing TCP Buffers."; } - if (isset($_POST['outgoing_num_tcp']) && !in_array($_POST['incoming_num_tcp'], array('0', '10', '20', '30', '40', '50'), true)) { + if (isset($_POST['incoming_num_tcp']) && !in_array($_POST['incoming_num_tcp'], array('0', '10', '20', '30', '40', '50'), true)) { $input_errors[] = "A valid value must be specified for Incoming TCP Buffers."; } if (isset($_POST['edns_buffer_size']) && !in_array($_POST['edns_buffer_size'], array('512', '1480', '4096'), true)) { |