diff options
author | Thomas Graf <tgraf@suug.ch> | 2006-08-18 03:15:44 +0200 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-22 23:55:06 +0200 |
commit | d889ce3b29e55b91257964b4c9aac70b91fedd91 (patch) | |
tree | 6d9250959b3cf33ceae6fcd90f34a12315bddb1c /net/ipv4/fib_frontend.c | |
parent | [IPv4]: Convert FIB dumping to use new netlink api (diff) | |
download | linux-d889ce3b29e55b91257964b4c9aac70b91fedd91.tar.xz linux-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 }, |