aboutsummaryrefslogtreecommitdiffstats
path: root/net/key/af_key.c
diff options
context:
space:
mode:
authorNicolas Dichtel <nicolas.dichtel@6wind.com>2013-02-18 10:24:20 -0500
committerSteffen Klassert <steffen.klassert@secunet.com>2013-02-21 01:14:38 -0500
commit85dfb745ee40232876663ae206cba35f24ab2a40 (patch)
tree531a885457d2d77b8a9608bc8009db9d06bd39da /net/key/af_key.c
parenta0b1c42951dd06ec83cc1bc2c9788131d9fefcd8 (diff)
af_key: initialize satype in key_notify_policy_flush()
This field was left uninitialized. Some user daemons perform check against this field. Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/key/af_key.c')
-rw-r--r--net/key/af_key.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/key/af_key.c b/net/key/af_key.c
index 9ef79851f297..d5a4a796f025 100644
--- a/net/key/af_key.c
+++ b/net/key/af_key.c
@@ -2694,6 +2694,7 @@ static int key_notify_policy_flush(const struct km_event *c)
2694 hdr->sadb_msg_pid = c->portid; 2694 hdr->sadb_msg_pid = c->portid;
2695 hdr->sadb_msg_version = PF_KEY_V2; 2695 hdr->sadb_msg_version = PF_KEY_V2;
2696 hdr->sadb_msg_errno = (uint8_t) 0; 2696 hdr->sadb_msg_errno = (uint8_t) 0;
2697 hdr->sadb_msg_satype = SADB_SATYPE_UNSPEC;
2697 hdr->sadb_msg_len = (sizeof(struct sadb_msg) / sizeof(uint64_t)); 2698 hdr->sadb_msg_len = (sizeof(struct sadb_msg) / sizeof(uint64_t));
2698 pfkey_broadcast(skb_out, GFP_ATOMIC, BROADCAST_ALL, NULL, c->net); 2699 pfkey_broadcast(skb_out, GFP_ATOMIC, BROADCAST_ALL, NULL, c->net);
2699 return 0; 2700 return 0;