diff options
Diffstat (limited to 'scripts/firewall')
-rwxr-xr-x | scripts/firewall/vyatta-ipset.pl | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/scripts/firewall/vyatta-ipset.pl b/scripts/firewall/vyatta-ipset.pl index 2be4c27..399c629 100755 --- a/scripts/firewall/vyatta-ipset.pl +++ b/scripts/firewall/vyatta-ipset.pl @@ -73,10 +73,7 @@ sub ipset_delete_member { die "Error: undefined member" if ! defined $member; my $group = new Vyatta::IpTables::IpSet($set_name); - if ($group->exists($set_name) && $group->check_member($member)) { - return $group->delete_member($member); - } - return; + return $group->delete_member($member); } sub ipset_check_set_type { |