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

xfrm4: Fix header checks in _decode_session4.



We skip the header informations if the data pointer points
already behind the header in question for some protocols.
This is because we call pskb_may_pull with a negative value
converted to unsigened int from pskb_may_pull in this case.
Skipping the header informations can lead to incorrect policy
lookups, so fix it by a check of the data pointer position
before we call pskb_may_pull.

Signed-off-by: default avatarSteffen Klassert <steffen.klassert@secunet.com>
parent e33d4f13
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