From: Rusty Russell Date: Fri, 1 Sep 2000 06:01:00 +0000 (+0000) Subject: Fixes for targets with no print() function. X-Git-Tag: v1.2.1~109 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=629149f7a8f145b760d1d53be22786b12e843083;p=thirdparty%2Fiptables.git Fixes for targets with no print() function. --- diff --git a/iptables.c b/iptables.c index d94cbd9c..697e0c1b 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);