Skip to content

Commit

Permalink
[DECNET]: Fix memset overflow on 64bit archs while dumping decnet rou…
Browse files Browse the repository at this point in the history
…ting rules

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Thomas Graf authored and David S. Miller committed Jul 5, 2005
1 parent bb1d23b commit db1322b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/decnet/dn_fib.c
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,8 @@ int dn_fib_dump(struct sk_buff *skb, struct netlink_callback *cb)
if (t < s_t)
continue;
if (t > s_t)
memset(&cb->args[1], 0, sizeof(cb->args)-sizeof(int));
memset(&cb->args[1], 0,
sizeof(cb->args) - sizeof(cb->args[0]));
tb = dn_fib_get_table(t, 0);
if (tb == NULL)
continue;
Expand Down

0 comments on commit db1322b

Please sign in to comment.