Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=fefaa75e0451c76225863644be01e4fd70884153 Commit: fefaa75e0451c76225863644be01e4fd70884153 Parent: 80d74d5123bf3aecd32302809c4e61bb8a16786b Author: David S. Miller <[EMAIL PROTECTED]> AuthorDate: Tue Apr 17 21:48:10 2007 -0700 Committer: David S. Miller <[EMAIL PROTECTED]> CommitDate: Wed Apr 18 14:16:07 2007 -0700
[IPSEC] af_key: Fix thinko in pfkey_xfrm_policy2msg() Make sure to actually assign the determined mode to rq->sadb_x_ipsecrequest_mode. Noticed by Joe Perches. Signed-off-by: David S. Miller <[EMAIL PROTECTED]> --- net/key/af_key.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net/key/af_key.c b/net/key/af_key.c index cf77930..3450193 100644 --- a/net/key/af_key.c +++ b/net/key/af_key.c @@ -2072,7 +2072,7 @@ static int pfkey_xfrm_policy2msg(struct sk_buff *skb, struct xfrm_policy *xp, in rq->sadb_x_ipsecrequest_proto = t->id.proto; if ((mode = pfkey_mode_from_xfrm(t->mode)) < 0) return -EINVAL; - mode = pfkey_mode_from_xfrm(t->mode); + rq->sadb_x_ipsecrequest_mode = mode; rq->sadb_x_ipsecrequest_level = IPSEC_LEVEL_REQUIRE; if (t->reqid) rq->sadb_x_ipsecrequest_level = IPSEC_LEVEL_UNIQUE; - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html