summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2013-08-08 11:35:44 -0700
committerStefan Metzmacher <metze@samba.org>2013-08-15 09:07:05 +0200
commit42f510c155b98f3df5106aebd1de54d1749b9b1c (patch)
treec16e5f32126ee6d15cc8f51a76ee4cd67ca19250 /source3/libsmb
parent9188ee4ab195a18b1bd697bced8613f98a6a91d9 (diff)
downloadsamba-42f510c155b98f3df5106aebd1de54d1749b9b1c.tar.gz
samba-42f510c155b98f3df5106aebd1de54d1749b9b1c.tar.bz2
samba-42f510c155b98f3df5106aebd1de54d1749b9b1c.zip
s3:libsmb: Modify cli_start_connection_connected() to use lp_cli_minprotocol()/lp_cli_maxprotocol() instead of hard coding PROTOCOL_CORE, PROTOCOL_NT1.
https://bugzilla.samba.org/show_bug.cgi?id=9514 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/cliconnect.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index 07d9a8aa8f..14cdf968b8 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/libsmb/cliconnect.c
@@ -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;
}