From c5d8f46d78dbfd9f5f1473498879e90c6ff14b20 Mon Sep 17 00:00:00 2001 From: gandalf Date: Wed, 22 Sep 2004 19:39:40 +0000 Subject: Fix listing of module targets. Type was only set for standard targets. Harald: please review. --- libiptc/libiptc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libiptc/libiptc.c') diff --git a/libiptc/libiptc.c b/libiptc/libiptc.c index f017e49..ce53918 100644 --- a/libiptc/libiptc.c +++ b/libiptc/libiptc.c @@ -1,4 +1,4 @@ -/* Library which manipulates firewall rules. Version $Revision: 1.49 $ */ +/* Library which manipulates firewall rules. Version $Revision: 1.50 $ */ /* Architecture of firewall rules is as follows: * @@ -498,6 +498,9 @@ new_rule: * until second pass, since we migh not * yet have parsed the target */ } + } else { + DEBUGP_C("module, target=%s\n", GET_TARGET(e)->u.user.name); + r->type = IPTCC_R_MODULE; } list_add_tail(&r->list, &h->chain_iterator_cur->rules); -- cgit v1.2.3