summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/zone-mgmt/vyatta-zone.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/zone-mgmt/vyatta-zone.pl b/scripts/zone-mgmt/vyatta-zone.pl
index b0d7286f..c6771e25 100755
--- a/scripts/zone-mgmt/vyatta-zone.pl
+++ b/scripts/zone-mgmt/vyatta-zone.pl
@@ -720,9 +720,9 @@ sub check_zones_validity {
sub check_fwruleset_isActive {
my ($ruleset_type, $ruleset_name) = @_;
- my $error = Vyatta::Zone::is_fwruleset_active('isActive',
- $ruleset_type, $ruleset_name);
- return "Invalid firewall ruleset $ruleset_type $ruleset_name" if $error;
+ my $ret = Vyatta::Zone::is_fwruleset_active('isActive', $ruleset_type,
+ $ruleset_name);
+ return "Invalid firewall ruleset $ruleset_type $ruleset_name" if (!$ret);
return;
}