From: Nicolas Dichtel Date: Mon, 18 Feb 2013 15:24:20 +0000 (+0100) Subject: af_key: initialize satype in key_notify_policy_flush() X-Git-Tag: v3.9-rc6~38^2~22^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=85dfb745ee40232876663ae206cba35f24ab2a40;p=platform%2Fkernel%2Flinux-3.10.git 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 Signed-off-by: Steffen Klassert --- 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;