Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fb977e2c authored by Jamal Hadi Salim's avatar Jamal Hadi Salim Committed by David S. Miller
Browse files

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: default avatarJamal Hadi Salim <hadi@cyberus.ca>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 10886af5
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -1154,6 +1154,7 @@ static struct xfrm_policy *clone_policy(struct xfrm_policy *old, int dir)
		}
		}
		newp->lft = old->lft;
		newp->lft = old->lft;
		newp->curlft = old->curlft;
		newp->curlft = old->curlft;
		newp->mark = old->mark;
		newp->action = old->action;
		newp->action = old->action;
		newp->flags = old->flags;
		newp->flags = old->flags;
		newp->xfrm_nr = old->xfrm_nr;
		newp->xfrm_nr = old->xfrm_nr;