diff options
Diffstat (limited to 'net')
-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 855004f08325..c52fee0976da 100644 --- a/net/ipv4/ip_gre.c +++ b/net/ipv4/ip_gre.c | |||
@@ -572,7 +572,7 @@ static int ipgre_header(struct sk_buff *skb, struct net_device *dev, | |||
572 | if (daddr) | 572 | if (daddr) |
573 | memcpy(&iph->daddr, daddr, 4); | 573 | memcpy(&iph->daddr, daddr, 4); |
574 | if (iph->daddr) | 574 | if (iph->daddr) |
575 | return t->hlen; | 575 | return t->hlen + sizeof(*iph); |
576 | 576 | ||
577 | return -(t->hlen + sizeof(*iph)); | 577 | return -(t->hlen + sizeof(*iph)); |
578 | } | 578 | } |