summaryrefslogtreecommitdiff
path: root/scripts/firewall/vyatta-ipset.pl
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2010-03-17 14:31:26 -0700
committerStig Thormodsrud <stig@vyatta.com>2010-03-17 14:31:26 -0700
commit2d5e2638b85cf0ad1227cbc0bb5aafce289b9921 (patch)
tree911b52edaeffdcd594b8dcf820d132e3fe92dca5 /scripts/firewall/vyatta-ipset.pl
parent3dc8ab4fadbd90957e6b41e39cf848ef6b0c7066 (diff)
downloadvyatta-cfg-firewall-2d5e2638b85cf0ad1227cbc0bb5aafce289b9921.tar.gz
vyatta-cfg-firewall-2d5e2638b85cf0ad1227cbc0bb5aafce289b9921.zip
Fix 5453: can't delete "address" under "firewall group <> address-group <>"
Diffstat (limited to 'scripts/firewall/vyatta-ipset.pl')
-rwxr-xr-xscripts/firewall/vyatta-ipset.pl5
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 {