]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
Fix listing of module targets.
authorMartin Josefsson <gandalf@wlug.westbo.se>
Wed, 22 Sep 2004 19:39:40 +0000 (19:39 +0000)
committerMartin Josefsson <gandalf@wlug.westbo.se>
Wed, 22 Sep 2004 19:39:40 +0000 (19:39 +0000)
Type was only set for standard targets.

Harald: please review.

libiptc/libiptc.c

index f017e498c288b89cd3f0bd49084e620b73b7ec1c..ce53918b4d309cbecebca461d8e6e995e9824ad2 100644 (file)
@@ -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);