diff options
author | gandalf <gandalf> | 2004-09-22 21:00:19 +0000 |
---|---|---|
committer | gandalf <gandalf> | 2004-09-22 21:00:19 +0000 |
commit | 358f17d96a35d6d65a8df8257b3def8ef69a2821 (patch) | |
tree | 46e6fc5d81c0e3505bbec6d5adb2c54e288d89d9 /libiptc | |
parent | c5d8f46d78dbfd9f5f1473498879e90c6ff14b20 (diff) |
Fix rule counting
Diffstat (limited to 'libiptc')
-rw-r--r-- | libiptc/libiptc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libiptc/libiptc.c b/libiptc/libiptc.c index ce53918..74f56f4 100644 --- a/libiptc/libiptc.c +++ b/libiptc/libiptc.c @@ -1,4 +1,4 @@ -/* Library which manipulates firewall rules. Version $Revision: 1.50 $ */ +/* Library which manipulates firewall rules. Version $Revision: 1.51 $ */ /* Architecture of firewall rules is as follows: * @@ -382,6 +382,7 @@ static int __iptcc_p_del_policy(TC_HANDLE_T h, unsigned int num) /* delete rule from cache */ iptcc_delete_rule(pr); + h->chain_iterator_cur->num_rules--; return 1; } @@ -504,6 +505,7 @@ new_rule: } list_add_tail(&r->list, &h->chain_iterator_cur->rules); + h->chain_iterator_cur->num_rules++; } out_inc: (*num)++; |