summaryrefslogtreecommitdiff
path: root/source4/libcli/raw/rawnegotiate.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-08-09 20:51:16 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:57:48 -0500
commit9c41274ace0a1dd88b113ce2bf84b33b0c528efa (patch)
tree3029ae61eacacbd79fb3bb53226d820542f7258f /source4/libcli/raw/rawnegotiate.c
parent0f32036afef72cbf0050ddd057ed986f9ef35976 (diff)
downloadsamba-9c41274ace0a1dd88b113ce2bf84b33b0c528efa.tar.gz
r1676: - improved the handling of username/password in locktest and gentest
- use lp_maxprotocol() in the libcli/raw/ negotiate code, so we obey the smb.conf "max protocol" option - better handling of -M option in masktest (This used to be commit 8685a584c92ab73a35b29a8c719f1ec207562837)
Diffstat (limited to 'source4/libcli/raw/rawnegotiate.c')
-rw-r--r--source4/libcli/raw/rawnegotiate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libcli/raw/rawnegotiate.c b/source4/libcli/raw/rawnegotiate.c
index 9b00aa6121f..dab7b389394 100644
--- a/source4/libcli/raw/rawnegotiate.c
+++ b/source4/libcli/raw/rawnegotiate.c
@@ -86,7 +86,7 @@ NTSTATUS smb_raw_negotiate(struct smbcli_transport *transport)
struct smbcli_request *req;
int protocol;
- req = smb_negprot_send(transport, PROTOCOL_NT1);
+ req = smb_negprot_send(transport, lp_maxprotocol());
if (!req) {
return NT_STATUS_UNSUCCESSFUL;
}