public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2.6.27-rc9] af_key: fix SADB_X_SPDDELETE response
@ 2008-10-09 12:10 Tobias Brunner
  2008-10-09 21:44 ` David Miller
  0 siblings, 1 reply; 4+ messages in thread
From: Tobias Brunner @ 2008-10-09 12:10 UTC (permalink / raw)
  To: David S. Miller; +Cc: linux-kernel

When deleting an SPD entry using SADB_X_SPDDELETE, c.data.byid is not 
initialized to zero in pfkey_spddelete(). Thus, key_notify_policy() 
responds with a PF_KEY message of type SADB_X_SPDDELETE2 instead of 
SADB_X_SPDDELETE.

Signed-off-by: Tobias Brunner <tobias.brunner@strongswan.org>

--- a/net/key/af_key.c	2008-10-09 13:10:04.000000000 +0200
+++ b/net/key/af_key.c	2008-10-09 13:49:11.000000000 +0200
@@ -2317,6 +2317,7 @@
 
 	c.seq = hdr->sadb_msg_seq;
 	c.pid = hdr->sadb_msg_pid;
+	c.data.byid = 0;
 	c.event = XFRM_MSG_DELPOLICY;
 	km_policy_notify(xp, pol->sadb_x_policy_dir-1, &c);
 


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

end of thread, other threads:[~2008-10-10 16:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-09 12:10 [PATCH 2.6.27-rc9] af_key: fix SADB_X_SPDDELETE response Tobias Brunner
2008-10-09 21:44 ` David Miller
2008-10-10  8:23   ` Tobias Brunner
2008-10-10 16:30     ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox