esp4: Fix integrity verification when ESN are used
authorTobias Brunner <tobias@strongswan.org>
Tue, 29 Nov 2016 16:05:20 +0000 (17:05 +0100)
committerSteffen Klassert <steffen.klassert@secunet.com>
Wed, 30 Nov 2016 10:09:39 +0000 (11:09 +0100)
commit7c7fedd51c02f4418e8b2eed64bdab601f882aa4
treec448c1d5cb2ca041c704b0099880795d4a6409e6
parent83e2d0587ae859aae75fd9d246c409b10a6bd137
esp4: Fix integrity verification when ESN are used

When handling inbound packets, the two halves of the sequence number
stored on the skb are already in network order.

Fixes: 7021b2e1cddd ("esp4: Switch to new AEAD interface")
Signed-off-by: Tobias Brunner <tobias@strongswan.org>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/ipv4/esp4.c