summaryrefslogtreecommitdiff
path: root/lib/Vyatta/Qos/LimiterClass.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Vyatta/Qos/LimiterClass.pm')
-rw-r--r--lib/Vyatta/Qos/LimiterClass.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Vyatta/Qos/LimiterClass.pm b/lib/Vyatta/Qos/LimiterClass.pm
index 8622efd..82dcf98 100644
--- a/lib/Vyatta/Qos/LimiterClass.pm
+++ b/lib/Vyatta/Qos/LimiterClass.pm
@@ -60,7 +60,10 @@ sub _define {
foreach my $match ( $config->listNodes("match") ) {
$config->setLevel("$level match $match");
- push @matches, new Vyatta::Qos::Match($config);
+ my $match = new Vyatta::Qos::Match($config);
+ if (defined($match) {
+ push @matches, $match;
+ }
}
$self->{_match} = \@matches;
}