diff options
author | Philip Blundell <Philip.Blundell@pobox.com> | 2000-06-04 17:25:33 +0000 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2000-06-04 17:25:33 +0000 |
commit | 57e07af96a28d81281a20ad7a0e9dc189caf4861 (patch) | |
tree | 45878c9ad5a26560b722981a5962e0af6a25d8f3 /ip6tables.c | |
parent | 5eed48af2516ebce0412121713d285bc30edb10d (diff) |
Phil Blundell: ICMP, TCP and UDP extensions + rule deletion bug.
Diffstat (limited to 'ip6tables.c')
-rw-r--r-- | ip6tables.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ip6tables.c b/ip6tables.c index 84215b9d..b75b7d4c 100644 --- a/ip6tables.c +++ b/ip6tables.c @@ -1231,17 +1231,16 @@ delete_entry(const ip6t_chainlabel chain, { unsigned int i, j; int ret = 1; - struct ip6t_entry ipfw = *fw; unsigned char *mask; mask = make_delete_mask(fw); for (i = 0; i < nsaddrs; i++) { - ipfw.ipv6.src = saddrs[i]; + fw->ipv6.src = saddrs[i]; for (j = 0; j < ndaddrs; j++) { - ipfw.ipv6.dst = daddrs[j]; + fw->ipv6.dst = daddrs[j]; if (verbose) print_firewall_line(fw, *handle); - ret &= ip6tc_delete_entry(chain, &ipfw, mask, handle); + ret &= ip6tc_delete_entry(chain, fw, mask, handle); } } return ret; |