[AF_KEY]: Fix bug in spdadd

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git-commits-head@...>
Date: Friday, February 15, 2008 - 6:01 pm

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=a4d6b8...
Commit:     a4d6b8af1e92daa872f55d06415b76c35f44d8bd
Parent:     d0c1fd7a8f4cadb95b093d2600ad627f432c5edb
Author:     Kazunori MIYAZAWA <kazunori@miyazawa.org>
AuthorDate: Thu Feb 14 14:51:38 2008 -0800
Committer:  David S. Miller <davem@davemloft.net>
CommitDate: Thu Feb 14 14:51:38 2008 -0800

    [AF_KEY]: Fix bug in spdadd
    
    This patch fix a BUG when adding spds which have same selector.
    
    Signed-off-by: Kazunori MIYAZAWA <kazunori@miyazawa.org>
    Signed-off-by: David S. Miller <davem@davemloft.net>
---
 net/key/af_key.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/net/key/af_key.c b/net/key/af_key.c
index b3ac85e..1c85392 100644
--- a/net/key/af_key.c
+++ b/net/key/af_key.c
@@ -2291,6 +2291,7 @@ static int pfkey_spdadd(struct sock *sk, struct sk_buff *skb, struct sadb_msg *h
 	return 0;
 
 out:
+	xp->dead = 1;
 	xfrm_policy_destroy(xp);
 	return err;
 }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[AF_KEY]: Fix bug in spdadd, Linux Kernel Mailing List..., (Fri Feb 15, 6:01 pm)