aboutsummaryrefslogtreecommitdiffstats
path: root/net/decnet/dn_table.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/decnet/dn_table.c')
-rw-r--r--net/decnet/dn_table.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/decnet/dn_table.c b/net/decnet/dn_table.c
index fc42a0afd306..b15c1d1720fb 100644
--- a/net/decnet/dn_table.c
+++ b/net/decnet/dn_table.c
@@ -19,7 +19,7 @@
19#include <linux/sockios.h> 19#include <linux/sockios.h>
20#include <linux/init.h> 20#include <linux/init.h>
21#include <linux/skbuff.h> 21#include <linux/skbuff.h>
22#include <linux/netlink.h> 22#include <net/netlink.h>
23#include <linux/rtnetlink.h> 23#include <linux/rtnetlink.h>
24#include <linux/proc_fs.h> 24#include <linux/proc_fs.h>
25#include <linux/netdevice.h> 25#include <linux/netdevice.h>
@@ -492,7 +492,7 @@ int dn_fib_dump(struct sk_buff *skb, struct netlink_callback *cb)
492 if (!net_eq(net, &init_net)) 492 if (!net_eq(net, &init_net))
493 return 0; 493 return 0;
494 494
495 if (NLMSG_PAYLOAD(cb->nlh, 0) >= sizeof(struct rtmsg) && 495 if (nlmsg_len(cb->nlh) >= sizeof(struct rtmsg) &&
496 ((struct rtmsg *)nlmsg_data(cb->nlh))->rtm_flags&RTM_F_CLONED) 496 ((struct rtmsg *)nlmsg_data(cb->nlh))->rtm_flags&RTM_F_CLONED)
497 return dn_cache_dump(skb, cb); 497 return dn_cache_dump(skb, cb);
498 498