diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2008-10-11 15:20:15 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-11 15:20:15 -0400 |
commit | 7bb82d924536cfa62db73dd381b07d9e9b084ffa (patch) | |
tree | 71dad5edcfca9b397f431863f8c8614fe05fecd8 /net/ipv4 | |
parent | f901b64472fdabc72eca2b9426fa4e96972b64c4 (diff) |
gre: Initialise rtnl_link tunnel parameters properly
Brown paper bag error of calling memset with sizeof(p) instead
of sizeof(*p).
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/ip_gre.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ip_gre.c b/net/ipv4/ip_gre.c index 05ebce2881ef..85c487b8572b 100644 --- a/net/ipv4/ip_gre.c +++ b/net/ipv4/ip_gre.c | |||
@@ -1345,7 +1345,7 @@ out: | |||
1345 | static void ipgre_netlink_parms(struct nlattr *data[], | 1345 | static void ipgre_netlink_parms(struct nlattr *data[], |
1346 | struct ip_tunnel_parm *parms) | 1346 | struct ip_tunnel_parm *parms) |
1347 | { | 1347 | { |
1348 | memset(parms, 0, sizeof(parms)); | 1348 | memset(parms, 0, sizeof(*parms)); |
1349 | 1349 | ||
1350 | parms->iph.protocol = IPPROTO_GRE; | 1350 | parms->iph.protocol = IPPROTO_GRE; |
1351 | 1351 | ||