From: Charles Hardin Date: Thu, 22 Nov 2007 11:35:15 +0000 (+0800) Subject: [PFKEY]: Sending an SADB_GET responds with an SADB_GET X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=435000bebd94aae3a7a50078d142d11683d3b193;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git [PFKEY]: Sending an SADB_GET responds with an SADB_GET From: Charles Hardin Kernel needs to respond to an SADB_GET with the same message type to conform to the RFC 2367 Section 3.1.5 Signed-off-by: Andrew Morton Signed-off-by: Herbert Xu --- diff --git a/net/key/af_key.c b/net/key/af_key.c index 10c89d47f685..3b2d864ab942 100644 --- a/net/key/af_key.c +++ b/net/key/af_key.c @@ -1552,7 +1552,7 @@ static int pfkey_get(struct sock *sk, struct sk_buff *skb, struct sadb_msg *hdr, out_hdr = (struct sadb_msg *) out_skb->data; out_hdr->sadb_msg_version = hdr->sadb_msg_version; - out_hdr->sadb_msg_type = SADB_DUMP; + out_hdr->sadb_msg_type = SADB_GET; out_hdr->sadb_msg_satype = pfkey_proto2satype(proto); out_hdr->sadb_msg_errno = 0; out_hdr->sadb_msg_reserved = 0;