xfrm: Reset encapsulation field of the skb before transformation
authorSteffen Klassert <steffen.klassert@secunet.com>
Mon, 22 Feb 2016 09:56:45 +0000 (10:56 +0100)
committerSteffen Klassert <steffen.klassert@secunet.com>
Thu, 17 Mar 2016 09:28:44 +0000 (10:28 +0100)
commit215276c0147ef49bc07692ca68bae35a30a64b9a
tree9076597df2a33a6bbd324953429c20819fd5d591
parent6ad3122a08e3a9c2148873665752e87cf4f393cc
xfrm: Reset encapsulation field of the skb before transformation

The inner headers are invalid after a xfrm transformation.
So reset the skb encapsulation field to ensure nobody tries
to access the inner headers.

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_output.c