diff options
author | Charles Hardin <chardin@2wire.com> | 2007-12-09 18:41:07 +0100 |
---|---|---|
committer | Adrian Bunk <bunk@kernel.org> | 2008-01-06 04:18:59 +0200 |
commit | 01152da5e89872ea626683a8e0d1bcd09fab6a37 (patch) | |
tree | bf2d00771b0303532c6d9af07f80dbbe3a12ea74 | |
parent | e296897180ce12ecb991c14f9652e74269b03216 (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>
-rw-r--r-- | net/key/af_key.c | 2 |
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; |