]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
Fixes for targets with no print() function.
authorRusty Russell <rusty@linuxcare.com.au>
Fri, 1 Sep 2000 06:01:00 +0000 (06:01 +0000)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 1 Sep 2000 06:01:00 +0000 (06:01 +0000)
iptables.c

index d94cbd9c103da9b678c680788bb5029bf853da86..697e0c1b87a16b9bfe827b04404b56fab140ab29 100644 (file)
@@ -1060,6 +1060,8 @@ print_match(const struct ipt_entry_match *m,
        if (match) {
                if (match->print)
                        match->print(ip, m, numeric);
+               else
+                       printf("%s ", match->name)
        } else {
                if (m->u.user.name[0])
                        printf("UNKNOWN match `%s' ", m->u.user.name);