projects
/
platform
/
kernel
/
linux-rpi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
xfrm: Reset encapsulation field of the skb before transformation
[platform/kernel/linux-rpi.git]
/
net
/
xfrm
/
xfrm_output.c
diff --git
a/net/xfrm/xfrm_output.c
b/net/xfrm/xfrm_output.c
index
ff4a91f
..
637387b
100644
(file)
--- a/
net/xfrm/xfrm_output.c
+++ b/
net/xfrm/xfrm_output.c
@@
-99,6
+99,9
@@
static int xfrm_output_one(struct sk_buff *skb, int err)
skb_dst_force(skb);
+ /* Inner headers are invalid now. */
+ skb->encapsulation = 0;
+
err = x->type->output(x, skb);
if (err == -EINPROGRESS)
goto out;