netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH][KEY] fix bug in spdadd
@ 2008-02-14 11:55 Kazunori MIYAZAWA
  2008-02-14 14:54 ` YOSHIFUJI Hideaki / 吉藤英明
  2008-02-14 22:51 ` David Miller
  0 siblings, 2 replies; 4+ messages in thread
From: Kazunori MIYAZAWA @ 2008-02-14 11:55 UTC (permalink / raw)
  To: David S. Miller, netdev

[-- 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;
 }

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-02-14 22:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-14 11:55 [PATCH][KEY] fix bug in spdadd Kazunori MIYAZAWA
2008-02-14 14:54 ` YOSHIFUJI Hideaki / 吉藤英明
2008-02-14 22:53   ` David Miller
2008-02-14 22:51 ` David Miller

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).