From 70177d974e395069698bc5c6b8fd6050eb08e812 Mon Sep 17 00:00:00 2001 From: rusty Date: Fri, 1 Sep 2000 06:01:00 +0000 Subject: Fixes for targets with no print() function. --- iptables.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/iptables.c b/iptables.c index d94cbd9..697e0c1 100644 --- a/iptables.c +++ b/iptables.c @@ -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); -- cgit v1.2.3