Commit fb977e2ca607a7e74946a1de798f474d1b80b9d6

Authored by Jamal Hadi Salim
Committed by David S. Miller
1 parent 10886af54a

xfrm: clone mark when cloning policy

When we clone the SP, we should also clone the mark.
Useful for socket based SPs.

Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

net/xfrm/xfrm_policy.c
... ... @@ -1154,6 +1154,7 @@
1154 1154 }
1155 1155 newp->lft = old->lft;
1156 1156 newp->curlft = old->curlft;
  1157 + newp->mark = old->mark;
1157 1158 newp->action = old->action;
1158 1159 newp->flags = old->flags;
1159 1160 newp->xfrm_nr = old->xfrm_nr;