From: Kazunori MIYAZAWA <kazunori@miyazawa.org>
To: "David S. Miller" <davem@davemloft.net>, netdev@vger.kernel.org
Subject: [PATCH][KEY] fix bug in spdadd
Date: Thu, 14 Feb 2008 20:55:40 +0900 [thread overview]
Message-ID: <47B42C3C.5090104@miyazawa.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 146 bytes --]
This patch fix a BUG when adding spds which have
same selector.
Signed-off-by: Kazunori MIYAZAWA <kazunori@miyazawa.org>
--
Kazunori Miyazawa
[-- Attachment #2: af_key.diff --]
[-- Type: text/x-patch, Size: 308 bytes --]
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;
}
next reply other threads:[~2008-02-14 12:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-14 11:55 Kazunori MIYAZAWA [this message]
2008-02-14 14:54 ` [PATCH][KEY] fix bug in spdadd YOSHIFUJI Hideaki / 吉藤英明
2008-02-14 22:53 ` David Miller
2008-02-14 22:51 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47B42C3C.5090104@miyazawa.org \
--to=kazunori@miyazawa.org \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).