summaryrefslogtreecommitdiff
path: root/source4/libcli/cliconnect.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/libcli/cliconnect.c')
-rw-r--r--source4/libcli/cliconnect.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/libcli/cliconnect.c b/source4/libcli/cliconnect.c
index a56100fc80..d806653758 100644
--- a/source4/libcli/cliconnect.c
+++ b/source4/libcli/cliconnect.c
@@ -55,10 +55,9 @@ bool smbcli_transport_establish(struct smbcli_state *cli,
}
/* wrapper around smb_raw_negotiate() */
-NTSTATUS smbcli_negprot(struct smbcli_state *cli)
+NTSTATUS smbcli_negprot(struct smbcli_state *cli, int maxprotocol)
{
- return smb_raw_negotiate(cli->transport,
- lp_cli_maxprotocol(global_loadparm));
+ return smb_raw_negotiate(cli->transport, maxprotocol);
}
/* wrapper around smb_raw_sesssetup() */