esp4: Fix integrity verification when ESN are used

commit 7c7fedd51c02f4418e8b2eed64bdab601f882aa4 upstream.

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 <>
Acked-by: Herbert Xu <>
Signed-off-by: Steffen Klassert <>
Signed-off-by: Greg Kroah-Hartman <>

1 file changed