]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/sched/act_ipt.c
[NETFILTER]: ipt action: use xt_check_target for basic verification
[linux-2.6-omap-h63xx.git] / net / sched / act_ipt.c
index 6056d20ef429daac373be83b3fefbd9c315c17b5..37640c6fc014c4c8a53a01609cbc78a51cbc7de6 100644 (file)
@@ -69,6 +69,11 @@ ipt_init_target(struct ipt_entry_target *t, char *table, unsigned int hook)
        DPRINTK("ipt_init_target: found %s\n", target->name);
        t->u.kernel.target = target;
 
+       ret = xt_check_target(target, AF_INET, t->u.target_size - sizeof(*t),
+                             table, hook, 0, 0);
+       if (ret)
+               return ret;
+
        if (t->u.kernel.target->checkentry
            && !t->u.kernel.target->checkentry(table, NULL,
                                               t->u.kernel.target, t->data,