diff options
Diffstat (limited to 'net/ipv6/esp6.c')
-rw-r--r-- | net/ipv6/esp6.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/ipv6/esp6.c b/net/ipv6/esp6.c index a64295d164ea..9eb928598351 100644 --- a/net/ipv6/esp6.c +++ b/net/ipv6/esp6.c | |||
@@ -43,7 +43,6 @@ | |||
43 | static int esp6_output(struct xfrm_state *x, struct sk_buff *skb) | 43 | static int esp6_output(struct xfrm_state *x, struct sk_buff *skb) |
44 | { | 44 | { |
45 | int err; | 45 | int err; |
46 | struct ipv6hdr *top_iph; | ||
47 | struct ip_esp_hdr *esph; | 46 | struct ip_esp_hdr *esph; |
48 | struct crypto_blkcipher *tfm; | 47 | struct crypto_blkcipher *tfm; |
49 | struct blkcipher_desc desc; | 48 | struct blkcipher_desc desc; |
@@ -85,9 +84,7 @@ static int esp6_output(struct xfrm_state *x, struct sk_buff *skb) | |||
85 | pskb_put(skb, trailer, clen - skb->len); | 84 | pskb_put(skb, trailer, clen - skb->len); |
86 | 85 | ||
87 | skb_push(skb, -skb_network_offset(skb)); | 86 | skb_push(skb, -skb_network_offset(skb)); |
88 | top_iph = ipv6_hdr(skb); | ||
89 | esph = ip_esp_hdr(skb); | 87 | esph = ip_esp_hdr(skb); |
90 | top_iph->payload_len = htons(skb->len + alen - sizeof(*top_iph)); | ||
91 | *(skb_tail_pointer(trailer) - 1) = *skb_mac_header(skb); | 88 | *(skb_tail_pointer(trailer) - 1) = *skb_mac_header(skb); |
92 | *skb_mac_header(skb) = IPPROTO_ESP; | 89 | *skb_mac_header(skb) = IPPROTO_ESP; |
93 | 90 | ||