summaryrefslogtreecommitdiff
path: root/lib/Vyatta/Qos/ShaperClass.pm
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2013-06-18 11:00:00 -0700
committerJohn Southworth <john.southworth@vyatta.com>2013-06-18 11:00:00 -0700
commitd1b24f46e6427d1fd2b20b1722bf9d92ab124cf0 (patch)
treef141ed38b8609f3b01532cb2d10fd15e18f80f9e /lib/Vyatta/Qos/ShaperClass.pm
parente758688b38609af03b9fbc63e4472536314a8245 (diff)
downloadvyatta-cfg-qos-d1b24f46e6427d1fd2b20b1722bf9d92ab124cf0.tar.gz
vyatta-cfg-qos-d1b24f46e6427d1fd2b20b1722bf9d92ab124cf0.zip
Bugfix 8469: ensure that matches have data under them
Diffstat (limited to 'lib/Vyatta/Qos/ShaperClass.pm')
-rw-r--r--lib/Vyatta/Qos/ShaperClass.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Vyatta/Qos/ShaperClass.pm b/lib/Vyatta/Qos/ShaperClass.pm
index 1cb7fbe..4d3cf33 100644
--- a/lib/Vyatta/Qos/ShaperClass.pm
+++ b/lib/Vyatta/Qos/ShaperClass.pm
@@ -68,7 +68,10 @@ sub _getMatch {
foreach my $match ( $config->listNodes($level) ) {
$config->setLevel("$level $match");
- push @matches, new Vyatta::Qos::Match($config);
+ my $match = new Vyatta::Qos::Match($config);
+ if (defined($match)) {
+ push @matches, $match;
+ }
}
return @matches;
}