Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=a4d6b8af1e92daa872f55d06415b76c35f44d8bd
Commit:     a4d6b8af1e92daa872f55d06415b76c35f44d8bd
Parent:     d0c1fd7a8f4cadb95b093d2600ad627f432c5edb
Author:     Kazunori MIYAZAWA <[EMAIL PROTECTED]>
AuthorDate: Thu Feb 14 14:51:38 2008 -0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
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 <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 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 [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to