diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2009-07-10 12:55:11 -0400 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2010-03-25 10:02:19 -0400 |
commit | d2a7b6bad2c38e41eddb0b24d03627d9e7aa3f7b (patch) | |
tree | 826eb9d112029819aa44925346a55f887b1c3baf /net/sched/act_ipt.c | |
parent | ff67e4e42bd178b1179c4d8e5c1fde18758ce84f (diff) |
netfilter: xtables: make use of xt_request_find_target
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'net/sched/act_ipt.c')
-rw-r--r-- | net/sched/act_ipt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sched/act_ipt.c b/net/sched/act_ipt.c index 082c520b0def..b9f79c251d75 100644 --- a/net/sched/act_ipt.c +++ b/net/sched/act_ipt.c | |||
@@ -46,8 +46,8 @@ static int ipt_init_target(struct ipt_entry_target *t, char *table, unsigned int | |||
46 | 46 | ||
47 | target = xt_request_find_target(AF_INET, t->u.user.name, | 47 | target = xt_request_find_target(AF_INET, t->u.user.name, |
48 | t->u.user.revision); | 48 | t->u.user.revision); |
49 | if (!target) | 49 | if (IS_ERR(target)) |
50 | return -ENOENT; | 50 | return PTR_ERR(target); |
51 | 51 | ||
52 | t->u.kernel.target = target; | 52 | t->u.kernel.target = target; |
53 | par.table = table; | 53 | par.table = table; |