summaryrefslogtreecommitdiffstats
path: root/net/key
diff options
context:
space:
mode:
authorNicolas Dichtel <nicolas.dichtel@6wind.com>2013-02-18 16:24:20 +0100
committerSteffen Klassert <steffen.klassert@secunet.com>2013-02-21 07:14:38 +0100
commit85dfb745ee40232876663ae206cba35f24ab2a40 (patch)
tree531a885457d2d77b8a9608bc8009db9d06bd39da /net/key
parenta0b1c42951dd06ec83cc1bc2c9788131d9fefcd8 (diff)
downloadop-kernel-dev-85dfb745ee40232876663ae206cba35f24ab2a40.zip
op-kernel-dev-85dfb745ee40232876663ae206cba35f24ab2a40.tar.gz
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')
-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 9ef7985..d5a4a79 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)
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;
OpenPOWER on IntegriCloud