diff options
author | Patrick McHardy <kaber@trash.net> | 2004-12-08 04:33:03 -0800 |
---|---|---|
committer | David S. Miller <davem@nuts.davemloft.net> | 2004-12-08 04:33:03 -0800 |
commit | 38a99497d787278a1332116c949018a96685a2d9 (patch) | |
tree | 6c0c162098d68092d451f8f355ecb1c9f570ebfc /net | |
parent | 4a8925d199df76e56bb3f865fa38034c65d8b5c2 (diff) | |
download | history-38a99497d787278a1332116c949018a96685a2d9.tar.gz |
[PKT_SCHED]: Fix oops in ipt action error path.
This patch fixes an oops when the ipt action is used with a
non-existant iptables target. It tries to log
t->u.kernel.target->name, u.kernel.target is part of a union
and as long as the target wasn't successfully loaded contains
the name of the target, using it as a pointer results in a
crash.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/sched/ipt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/sched/ipt.c b/net/sched/ipt.c index 3b6842c2130716..386d948ab1b29e 100644 --- a/net/sched/ipt.c +++ b/net/sched/ipt.c @@ -63,8 +63,7 @@ init_targ(struct tcf_ipt *p) target = __ipt_find_target_lock(t->u.user.name, &ret); if (!target) { - printk("init_targ: Failed to find %s\n", - t->u.kernel.target->name); + printk("init_targ: Failed to find %s\n", t->u.user.name); return -1; } |