summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-06-22 17:06:36 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:09:29 -0500
commit7bf085571eba5f321d35ff449d68da39ec303dab (patch)
treeb2772f64d1ce496cd8c3dd6223da43a71951ad07 /source4/libcli
parentd44c28b3a9ee09c27edb738684d79646b1e311a0 (diff)
downloadsamba-7bf085571eba5f321d35ff449d68da39ec303dab.tar.gz
samba-7bf085571eba5f321d35ff449d68da39ec303dab.tar.bz2
samba-7bf085571eba5f321d35ff449d68da39ec303dab.zip
r16464: split client and server min/max protocol settings
metze (This used to be commit 6164d1e22e0545f558315591d49f862de06ea945)
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/cliconnect.c2
-rw-r--r--source4/libcli/smb_composite/connect.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/libcli/cliconnect.c b/source4/libcli/cliconnect.c
index d89d6a1568..45f44adba1 100644
--- a/source4/libcli/cliconnect.c
+++ b/source4/libcli/cliconnect.c
@@ -57,7 +57,7 @@ BOOL smbcli_transport_establish(struct smbcli_state *cli,
/* wrapper around smb_raw_negotiate() */
NTSTATUS smbcli_negprot(struct smbcli_state *cli)
{
- return smb_raw_negotiate(cli->transport, lp_maxprotocol());
+ return smb_raw_negotiate(cli->transport, lp_cli_maxprotocol());
}
/* wrapper around smb_raw_sesssetup() */
diff --git a/source4/libcli/smb_composite/connect.c b/source4/libcli/smb_composite/connect.c
index a28d33cf7f..7d4960d7d5 100644
--- a/source4/libcli/smb_composite/connect.c
+++ b/source4/libcli/smb_composite/connect.c
@@ -63,7 +63,7 @@ static NTSTATUS connect_send_negprot(struct composite_context *c,
{
struct connect_state *state = talloc_get_type(c->private_data, struct connect_state);
- state->req = smb_raw_negotiate_send(state->transport, lp_maxprotocol());
+ state->req = smb_raw_negotiate_send(state->transport, lp_cli_maxprotocol());
NT_STATUS_HAVE_NO_MEMORY(state->req);
state->req->async.fn = request_handler;