]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
netfilter: ip_tables: fix compilation when debug is enabled
authorJan Engelhardt <jengelh@medozas.de>
Sun, 2 May 2010 11:55:21 +0000 (13:55 +0200)
committerJan Engelhardt <jengelh@medozas.de>
Sun, 2 May 2010 11:55:34 +0000 (13:55 +0200)
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
net/ipv4/netfilter/ip_tables.c

index 3e6af1036fbcc6c5778f2c8136ad75e8d653cd0a..f92818f766710da455c9dd1e0b7ab0a1c2520dc6 100644 (file)
@@ -591,7 +591,7 @@ check_entry(const struct ipt_entry *e, const char *name)
        const struct ipt_entry_target *t;
 
        if (!ip_checkentry(&e->ip)) {
-               duprintf("ip check failed %p %s.\n", e, name);
+               duprintf("ip check failed %p %s.\n", e, par->match->name);
                return -EINVAL;
        }
 
@@ -618,7 +618,7 @@ check_match(struct ipt_entry_match *m, struct xt_mtchk_param *par)
        ret = xt_check_match(par, m->u.match_size - sizeof(*m),
              ip->proto, ip->invflags & IPT_INV_PROTO);
        if (ret < 0) {
-               duprintf("check failed for `%s'.\n", par.match->name);
+               duprintf("check failed for `%s'.\n", par->match->name);
                return ret;
        }
        return 0;