diff options
author | jim-p <jimp@pfsense.org> | 2016-03-23 09:57:58 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2016-03-23 09:57:58 -0400 |
commit | ab824cdee772b5c9e726db2dc8f198944b57910f (patch) | |
tree | 9f78e37f0d51817ed78a8e3f0f62296b7984b5ab /src/etc | |
parent | 179196e4dc5778ac87ef43b955fc77cff93fee90 (diff) | |
download | pfsense-ab824cdee772b5c9e726db2dc8f198944b57910f.zip pfsense-ab824cdee772b5c9e726db2dc8f198944b57910f.tar.gz |
Band-aid to stop this from breaking the firewall. Ticket #5721
Diffstat (limited to 'src/etc')
-rw-r--r-- | src/etc/inc/shaper.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/etc/inc/shaper.inc b/src/etc/inc/shaper.inc index 599407c..df240ca 100644 --- a/src/etc/inc/shaper.inc +++ b/src/etc/inc/shaper.inc @@ -251,6 +251,10 @@ function get_hfsc_bandwidth($object, $bw) { function get_interface_bandwidth($object) { global $altq_list_queues; + if (!$object) { + return 0; + } + $int = $object->GetInterface(); $altq =& $altq_list_queues[$int]; if ($altq) { |