diff options
author | Jamal Hadi Salim <hadi@cyberus.ca> | 2010-02-23 18:09:53 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-23 18:09:53 -0500 |
commit | fb977e2ca607a7e74946a1de798f474d1b80b9d6 (patch) | |
tree | 5e966bbf23b524d9ae58ce5f962103e715c58fc6 /net/xfrm | |
parent | 10886af54a2478f97f2d5f89bbe270b99206f8ab (diff) |
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>
Diffstat (limited to 'net/xfrm')
-rw-r--r-- | net/xfrm/xfrm_policy.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c index 2a6e64652654..34a5ef8316e7 100644 --- a/net/xfrm/xfrm_policy.c +++ b/net/xfrm/xfrm_policy.c | |||
@@ -1154,6 +1154,7 @@ static struct xfrm_policy *clone_policy(struct xfrm_policy *old, int dir) | |||
1154 | } | 1154 | } |
1155 | newp->lft = old->lft; | 1155 | newp->lft = old->lft; |
1156 | newp->curlft = old->curlft; | 1156 | newp->curlft = old->curlft; |
1157 | newp->mark = old->mark; | ||
1157 | newp->action = old->action; | 1158 | newp->action = old->action; |
1158 | newp->flags = old->flags; | 1159 | newp->flags = old->flags; |
1159 | newp->xfrm_nr = old->xfrm_nr; | 1160 | newp->xfrm_nr = old->xfrm_nr; |