s3:smbd: use PROTOCOL_SMB2_02 instead PROTOCOL_SMB2
authorStefan Metzmacher <metze@samba.org>
Mon, 11 Jul 2011 20:23:56 +0000 (22:23 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 12 Jul 2011 06:18:00 +0000 (08:18 +0200)
metze

source3/smbd/negprot.c
source3/smbd/process.c
source3/smbd/smb2_negprot.c

index a6d7cc0ab3ee49507e2a70ef15fae67291a5f6f9..f1d2fc25457b12e4c69be013723cc27d1454f92c 100644 (file)
@@ -510,7 +510,7 @@ static const struct {
        void (*proto_reply_fn)(struct smb_request *req, uint16 choice);
        int protocol_level;
 } supported_protocols[] = {
-       {"SMB 2.002",               "SMB2",     reply_smb2002,  PROTOCOL_SMB2},
+       {"SMB 2.002",               "SMB2_02",  reply_smb2002,  PROTOCOL_SMB2_02},
        {"NT LANMAN 1.0",           "NT1",      reply_nt1,      PROTOCOL_NT1},
        {"NT LM 0.12",              "NT1",      reply_nt1,      PROTOCOL_NT1},
        {"POSIX 2",                 "NT1",      reply_nt1,      PROTOCOL_NT1},
index 339d005b4294a8a2cd80ab92617278db4b1e4974..d3957fe936a5416868e4995cf74f48e2a37c48fa 100644 (file)
@@ -2836,7 +2836,7 @@ void smbd_process(struct smbd_server_connection *sconn)
        char *rhost;
        int ret;
 
-       if (lp_maxprotocol() == PROTOCOL_SMB2) {
+       if (lp_maxprotocol() >= PROTOCOL_SMB2_02) {
                /*
                 * We're not making the decision here,
                 * we're just allowing the client
index f639503ad4cc418d6728d5ae7937b786ddfe106a..5ae916397bf4eb27228694469d074a6bbee1e967 100644 (file)
@@ -113,7 +113,7 @@ NTSTATUS smbd_smb2_request_process_negprot(struct smbd_smb2_request *req)
                return smbd_smb2_request_error(req, NT_STATUS_INVALID_PARAMETER);
        }
 
-       set_Protocol(PROTOCOL_SMB2);
+       set_Protocol(PROTOCOL_SMB2_02);
 
        if (get_remote_arch() != RA_SAMBA) {
                set_remote_arch(RA_VISTA);