aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorCharles Hardin <chardin@2wire.com>2007-12-09 18:41:07 +0100
committerAdrian Bunk <bunk@kernel.org>2008-01-06 04:18:59 +0200
commit01152da5e89872ea626683a8e0d1bcd09fab6a37 (patch)
treebf2d00771b0303532c6d9af07f80dbbe3a12ea74 /net
parente296897180ce12ecb991c14f9652e74269b03216 (diff)
[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 <akpm@linux-foundation.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Adrian Bunk <bunk@kernel.org>
Diffstat (limited to 'net')
-rw-r--r--net/key/af_key.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/key/af_key.c b/net/key/af_key.c
index b2d4d1dd211..2f8cfb9c842 100644
--- a/net/key/af_key.c
+++ b/net/key/af_key.c
@@ -1498,7 +1498,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;