diff options
author | Nicolas Dichtel <nicolas.dichtel@6wind.com> | 2013-02-18 16:24:20 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-20 08:21:01 -0700 |
commit | e00f3fdc81f21fe6de883c647aff2efcd6945de4 (patch) | |
tree | 2368207625fac578353e10c9454bdc7e6cb17c90 /net/key | |
parent | bd874f70e245977197782bc0e03c658f3e93573b (diff) | |
download | kernel_samsung_espresso10-e00f3fdc81f21fe6de883c647aff2efcd6945de4.zip kernel_samsung_espresso10-e00f3fdc81f21fe6de883c647aff2efcd6945de4.tar.gz kernel_samsung_espresso10-e00f3fdc81f21fe6de883c647aff2efcd6945de4.tar.bz2 |
af_key: initialize satype in key_notify_policy_flush()
commit 85dfb745ee40232876663ae206cba35f24ab2a40 upstream.
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>
Cc: Luis Henriques <luis.henriques@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/key')
-rw-r--r-- | net/key/af_key.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/key/af_key.c b/net/key/af_key.c index d040880..020a602 100644 --- a/net/key/af_key.c +++ b/net/key/af_key.c @@ -2687,6 +2687,7 @@ static int key_notify_policy_flush(const struct km_event *c) hdr->sadb_msg_pid = c->pid; 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)); hdr->sadb_msg_reserved = 0; pfkey_broadcast(skb_out, GFP_ATOMIC, BROADCAST_ALL, NULL, c->net); |