Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 90722
b: refs/heads/master
c: 2c8dd11
h: refs/heads/master
v: v3
  • Loading branch information
Denis V. Lunev authored and David S. Miller committed Apr 14, 2008
1 parent b94f7a8 commit ba4077e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 569508c964a8b5235e00998523bc3acd3f6aff01
refs/heads/master: 2c8dd11636e3a5f14a7fb765331b7043f01fe937
8 changes: 4 additions & 4 deletions trunk/net/xfrm/xfrm_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -1343,14 +1343,14 @@ static int xfrm_get_policy(struct sk_buff *skb, struct nlmsghdr *nlh,
if (err)
return err;

ctx = NULL;
if (rt) {
struct xfrm_user_sec_ctx *uctx = nla_data(rt);

err = security_xfrm_policy_alloc(&ctx, uctx);
if (err)
return err;
} else
ctx = NULL;
}
xp = xfrm_policy_bysel_ctx(type, p->dir, &p->sel, ctx,
delete, &err);
security_xfrm_policy_free(ctx);
Expand Down Expand Up @@ -1579,14 +1579,14 @@ static int xfrm_add_pol_expire(struct sk_buff *skb, struct nlmsghdr *nlh,
if (err)
return err;

ctx = NULL;
if (rt) {
struct xfrm_user_sec_ctx *uctx = nla_data(rt);

err = security_xfrm_policy_alloc(&ctx, uctx);
if (err)
return err;
} else
ctx = NULL;
}
xp = xfrm_policy_bysel_ctx(type, p->dir, &p->sel, ctx, 0, &err);
security_xfrm_policy_free(ctx);
}
Expand Down

0 comments on commit ba4077e

Please sign in to comment.