s3:libsmb: Modify cli_start_connection_connected() to use lp_cli_minprotocol()/lp_cli...
authorJeremy Allison <jra@samba.org>
Thu, 8 Aug 2013 18:35:44 +0000 (11:35 -0700)
committerStefan Metzmacher <metze@samba.org>
Thu, 15 Aug 2013 07:07:05 +0000 (09:07 +0200)
https://bugzilla.samba.org/show_bug.cgi?id=9514

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/libsmb/cliconnect.c

index 07d9a8aa8f9d8f5f4b1db0a9c480c16bd2b9c097..14cdf968b8699b4a575eb951b765e3a813959bf8 100644 (file)
@@ -3118,7 +3118,8 @@ static void cli_start_connection_connected(struct tevent_req *subreq)
 
        subreq = smbXcli_negprot_send(state, state->ev, state->cli->conn,
                                      state->cli->timeout,
-                                     PROTOCOL_CORE, PROTOCOL_NT1);
+                                     lp_cli_minprotocol(),
+                                     lp_cli_maxprotocol());
        if (tevent_req_nomem(subreq, req)) {
                return;
        }