aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/ipcomp.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/ipcomp.c')
-rw-r--r--net/ipv4/ipcomp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/ipcomp.c b/net/ipv4/ipcomp.c
index e787044a8514..1929d451dab5 100644
--- a/net/ipv4/ipcomp.c
+++ b/net/ipv4/ipcomp.c
@@ -134,6 +134,7 @@ static int ipcomp_output(struct xfrm_state *x, struct sk_buff *skb)
134 int hdr_len = 0; 134 int hdr_len = 0;
135 struct iphdr *iph = ip_hdr(skb); 135 struct iphdr *iph = ip_hdr(skb);
136 136
137 skb_push(skb, -skb_network_offset(skb));
137 iph->tot_len = htons(skb->len); 138 iph->tot_len = htons(skb->len);
138 hdr_len = iph->ihl * 4; 139 hdr_len = iph->ihl * 4;
139 if ((skb->len - hdr_len) < ipcd->threshold) { 140 if ((skb->len - hdr_len) < ipcd->threshold) {