All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH ipsec] af_key: initialize satype in key_notify_policy_flush()
@ 2013-02-18 15:24 Nicolas Dichtel
  2013-02-22  5:56 ` Steffen Klassert
  0 siblings, 1 reply; 2+ messages in thread
From: Nicolas Dichtel @ 2013-02-18 15:24 UTC (permalink / raw)
  To: steffen.klassert, herbert, davem; +Cc: netdev, Nicolas Dichtel

This field was left uninitialized. Some user daemons perform check against this
field.

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
---
 net/key/af_key.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net/key/af_key.c b/net/key/af_key.c
index 5b426a6..f9bd41e 100644
--- a/net/key/af_key.c
+++ b/net/key/af_key.c
@@ -2688,6 +2688,7 @@ static int key_notify_policy_flush(const struct km_event *c)
 	hdr->sadb_msg_pid = c->portid;
 	hdr->sadb_msg_version = PF_KEY_V2;
 	hdr->sadb_msg_errno = (uint8_t) 0;
+	hdr->sadb_msg_satype = SADB_SATYPE_UNSPEC;
 	hdr->sadb_msg_len = (sizeof(struct sadb_msg) / sizeof(uint64_t));
 	pfkey_broadcast(skb_out, GFP_ATOMIC, BROADCAST_ALL, NULL, c->net);
 	return 0;
-- 
1.8.0.1

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

* Re: [PATCH ipsec] af_key: initialize satype in key_notify_policy_flush()
  2013-02-18 15:24 [PATCH ipsec] af_key: initialize satype in key_notify_policy_flush() Nicolas Dichtel
@ 2013-02-22  5:56 ` Steffen Klassert
  0 siblings, 0 replies; 2+ messages in thread
From: Steffen Klassert @ 2013-02-22  5:56 UTC (permalink / raw)
  To: Nicolas Dichtel; +Cc: herbert, davem, netdev

On Mon, Feb 18, 2013 at 04:24:20PM +0100, Nicolas Dichtel wrote:
> This field was left uninitialized. Some user daemons perform check against this
> field.
> 
> Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>

Applied, thanks!

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

end of thread, other threads:[~2013-02-22  5:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-18 15:24 [PATCH ipsec] af_key: initialize satype in key_notify_policy_flush() Nicolas Dichtel
2013-02-22  5:56 ` Steffen Klassert

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.