From: Charles Hardin Date: Thu, 29 Nov 2007 12:07:57 +0000 (+1100) Subject: PFKEY: Sending an SADB_GET responds with an SADB_GET X-Git-Tag: v2.6.23.10~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=193e74df1d41817112df6d97ba447a4841378b2d;p=thirdparty%2Fkernel%2Fstable.git PFKEY: Sending an SADB_GET responds with an SADB_GET [PFKEY]: Sending an SADB_GET responds with an SADB_GET [ Upstream commit: 435000bebd94aae3a7a50078d142d11683d3b193 ] 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/net/key/af_key.c b/net/key/af_key.c index 5502df115a633..7a5e9933ace16 100644 --- a/net/key/af_key.c +++ b/net/key/af_key.c @@ -1546,7 +1546,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;