summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-06-18 12:01:09 -0400
committerjim-p <jimp@pfsense.org>2013-06-18 12:01:50 -0400
commitf03cf8920b52472f835df49ffe4aec35afe8e899 (patch)
tree34ffa250a85a0e7add156800a337232a9c6b8993 /etc/inc
parent012cd3ba990b8303c6937df039d31ef039610853 (diff)
downloadpfsense-f03cf8920b52472f835df49ffe4aec35afe8e899.zip
pfsense-f03cf8920b52472f835df49ffe4aec35afe8e899.tar.gz
A better fix for conditionally including burst.
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/shaper.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc
index f69b9c7..07cbf24 100644
--- a/etc/inc/shaper.inc
+++ b/etc/inc/shaper.inc
@@ -3165,7 +3165,7 @@ class dnpipe_class extends dummynet_class {
if ($bw['bwsched'] == $schedule['name']) {
if (filter_get_time_based_rule_status($schedule)) {
$pfq_rule .= " bw ".trim($bw['bw']).$bw['bwscale'];
- if ($bw['burst'] >= 0)
+ if (is_numeric($bw['burst']) && ($bw['burst'] >= 0))
$pfq_rule .= " burst ".trim($bw['burst']).$bw['bwscale'];
$found = true;
break;
@@ -3180,7 +3180,7 @@ class dnpipe_class extends dummynet_class {
}
} else {
$pfq_rule .= " bw ".trim($bw['bw']).$bw['bwscale'];
- if ($bw['burst'] >= 0)
+ if (is_numeric($bw['burst']) && ($bw['burst'] >= 0))
$pfq_rule .= " burst ".trim($bw['burst']).$bw['bwscale'];
$found = true;
break;
OpenPOWER on IntegriCloud