Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=435000bebd94aae3a7a50078d142d11683d3b193
Commit:     435000bebd94aae3a7a50078d142d11683d3b193
Parent:     8c92e6b0bf48a1735ddc61ebb08a0bb77c6bfa23
Author:     Charles Hardin <[EMAIL PROTECTED]>
AuthorDate: Thu Nov 22 19:35:15 2007 +0800
Committer:  Herbert Xu <[EMAIL PROTECTED]>
CommitDate: Thu Nov 22 19:35:15 2007 +0800

    [PFKEY]: Sending an SADB_GET responds with an SADB_GET
    
    From: Charles Hardin <[EMAIL PROTECTED]>
    
    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 <[EMAIL PROTECTED]>
    Signed-off-by: Herbert Xu <[EMAIL PROTECTED]>
---
 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 10c89d4..3b2d864 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;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to