diff options
author | Thomas Graf <tgraf@suug.ch> | 2006-08-17 18:15:44 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-22 14:55:06 -0700 |
commit | d889ce3b29e55b91257964b4c9aac70b91fedd91 (patch) | |
tree | 6d9250959b3cf33ceae6fcd90f34a12315bddb1c /net/ipv4/fib_frontend.c | |
parent | be403ea1856f1428b5912b42184acbba808c41d6 (diff) | |
download | linux-stable-d889ce3b29e55b91257964b4c9aac70b91fedd91.tar.gz linux-stable-d889ce3b29e55b91257964b4c9aac70b91fedd91.tar.bz2 linux-stable-d889ce3b29e55b91257964b4c9aac70b91fedd91.zip |
[IPv4]: Convert route get to new netlink api
Fixes various unvalidated netlink attributes causing memory
corruptions when left empty by userspace applications.
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/fib_frontend.c')
-rw-r--r-- | net/ipv4/fib_frontend.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/fib_frontend.c b/net/ipv4/fib_frontend.c index d537c933abe3..d0abeab16e66 100644 --- a/net/ipv4/fib_frontend.c +++ b/net/ipv4/fib_frontend.c @@ -453,7 +453,7 @@ int ip_rt_ioctl(unsigned int cmd, void *arg) #endif -static struct nla_policy rtm_ipv4_policy[RTA_MAX+1] __read_mostly = { +struct nla_policy rtm_ipv4_policy[RTA_MAX+1] __read_mostly = { [RTA_DST] = { .type = NLA_U32 }, [RTA_SRC] = { .type = NLA_U32 }, [RTA_IIF] = { .type = NLA_U32 }, |