diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2009-07-10 18:55:11 +0200 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2010-03-25 15:02:19 +0100 |
commit | d2a7b6bad2c38e41eddb0b24d03627d9e7aa3f7b (patch) | |
tree | 826eb9d112029819aa44925346a55f887b1c3baf /net/sched/act_ipt.c | |
parent | netfilter: xt extensions: use pr_<level> (2) (diff) | |
download | linux-d2a7b6bad2c38e41eddb0b24d03627d9e7aa3f7b.tar.xz linux-d2a7b6bad2c38e41eddb0b24d03627d9e7aa3f7b.zip |
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 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; |