esp6: Fix scatterlist initialization

When we use IPsec extended sequence numbers, we may overwrite
the last scatterlist of the associated data by the scatterlist
for the skb. This patch fixes this by placing the scatterlist
for the skb right behind the last scatterlist of the associated
data. esp4 does it already like that.

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Steffen Klassert and committed by David S. Miller c0a56e64 3f602b08

+1 -1
+1 -1
net/ipv6/esp6.c
··· 371 371 iv = esp_tmp_iv(aead, tmp, seqhilen); 372 372 req = esp_tmp_req(aead, iv); 373 373 asg = esp_req_sg(aead, req); 374 - sg = asg + 1; 374 + sg = asg + sglists; 375 375 376 376 skb->ip_summed = CHECKSUM_NONE; 377 377