diff options
author | Charles Hardin <chardin@2wire.com> | 2007-11-29 23:07:57 +1100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-12-14 09:51:05 -0800 |
commit | 193e74df1d41817112df6d97ba447a4841378b2d (patch) | |
tree | bf9a5cd880227224e3f6f3a12e1d2eb9bbb05b3f /net/key | |
parent | 5fb62a184b2f0ea0e3aa2baeed2a01b71844368d (diff) |
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 <akpm@linux-foundation.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'net/key')
-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 5502df115a6..7a5e9933ace 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; |