summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_shaper.php
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-09-12 11:29:21 -0300
committerRenato Botelho <garga@FreeBSD.org>2013-09-12 11:29:21 -0300
commitea51e9f8bfc188f7233ee22e1cc7a58643c4dba5 (patch)
tree98138ef1b4830cf0c534970cde04def3c3eb7cb6 /usr/local/www/firewall_shaper.php
parent1e9b461124a435fe64c62d065d09b01e1ca368e8 (diff)
downloadpfsense-ea51e9f8bfc188f7233ee22e1cc7a58643c4dba5.zip
pfsense-ea51e9f8bfc188f7233ee22e1cc7a58643c4dba5.tar.gz
Remove call-time pass by reference from traffic shaper files, it should fix #2565
Diffstat (limited to 'usr/local/www/firewall_shaper.php')
-rwxr-xr-xusr/local/www/firewall_shaper.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/www/firewall_shaper.php b/usr/local/www/firewall_shaper.php
index fe181e9..53f4d64 100755
--- a/usr/local/www/firewall_shaper.php
+++ b/usr/local/www/firewall_shaper.php
@@ -225,11 +225,11 @@ if ($_GET) {
}
$altq->SetAvailableBandwidth($altq->GetBandwidth() * $factor);
$altq->ReadConfig($_POST);
- $altq->validate_input($_POST, &$input_errors);
+ $altq->validate_input($_POST, $input_errors);
if (!$input_errors) {
unset($tmppath);
$tmppath[] = $altq->GetInterface();
- $altq->SetLink(&$tmppath);
+ $altq->SetLink($tmppath);
$altq->wconfig();
if (write_config())
mark_subsystem_dirty('shaper');
@@ -244,7 +244,7 @@ if ($_GET) {
if ($qtmp) {
$tmppath =& $qtmp->GetLink();
array_push($tmppath, $qname);
- $tmp =& $qtmp->add_queue($interface, $_POST, $tmppath, &$input_errors);
+ $tmp =& $qtmp->add_queue($interface, $_POST, $tmppath, $input_errors);
if (!$input_errors) {
array_pop($tmppath);
$tmp->wconfig();
@@ -298,7 +298,7 @@ if ($_GET) {
}
} else if ($queue) {
- $queue->validate_input($_POST, &$input_errors);
+ $queue->validate_input($_POST, $input_errors);
if (!$input_errors) {
$queue->update_altq_queue_data($_POST);
$queue->wconfig();
OpenPOWER on IntegriCloud