netfilter: xtables: make use of xt_request_find_target

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
This commit is contained in:
Jan Engelhardt
2009-07-10 18:55:11 +02:00
parent ff67e4e42b
commit d2a7b6bad2
6 changed files with 29 additions and 52 deletions

View File

@@ -46,8 +46,8 @@ static int ipt_init_target(struct ipt_entry_target *t, char *table, unsigned int
target = xt_request_find_target(AF_INET, t->u.user.name,
t->u.user.revision);
if (!target)
return -ENOENT;
if (IS_ERR(target))
return PTR_ERR(target);
t->u.kernel.target = target;
par.table = table;