Skip to content
Commit de3b7a06 authored by Steffen Klassert's avatar Steffen Klassert
Browse files

xfrm6: Fix transport header offset in _decode_session6.



skb->transport_header might not be valid when we do a reverse
decode because the ipv6 tunnel error handlers don't update it
to the inner transport header. This leads to a wrong offset
calculation and to wrong layer 4 informations. We fix this
by using the size of the ipv6 header as the first offset.

Signed-off-by: default avatarSteffen Klassert <steffen.klassert@secunet.com>
parent f2a01517
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment