diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-12-02 21:14:16 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:47:12 +0100 |
commit | 84892d030de6266fc0f3a699cade960dd5dc37bc (patch) | |
tree | e15ebe14932ee16e3b91969410ce93a6386e01ea /source/client/smbmount.c | |
parent | 7780bf285fdfc30f89409d0436bad0d4b6de5cd4 (diff) | |
download | samba-84892d030de6266fc0f3a699cade960dd5dc37bc.tar.gz |
r26234: More global_loadparm fixes.
Diffstat (limited to 'source/client/smbmount.c')
-rw-r--r-- | source/client/smbmount.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/client/smbmount.c b/source/client/smbmount.c index 1a1371edae8..1ac524dd0cb 100644 --- a/source/client/smbmount.c +++ b/source/client/smbmount.c @@ -111,7 +111,7 @@ static void usr1_handler(int x) /***************************************************** return a connection to a server *******************************************************/ -static struct smbcli_state *do_connection(char *the_service) +static struct smbcli_state *do_connection(char *the_service, int maxprotocol) { struct smbcli_state *c; struct nmb_name called, calling; @@ -181,7 +181,7 @@ static struct smbcli_state *do_connection(char *the_service) DEBUG(4,("%d: session request ok\n", sys_getpid())); - if (!smbcli_negprot(c, lp_cli_maxprotocol(global_loadparm))) { + if (!smbcli_negprot(c, maxprotocol)) { DEBUG(0,("%d: protocol negotiation failed\n", sys_getpid())); talloc_free(c); return NULL; @@ -434,7 +434,7 @@ static void init_mount(void) } - c = do_connection(service); + c = do_connection(service, lp_cli_maxprotocol(global_loadparm)); if (!c) { fprintf(stderr,"SMB connection failed\n"); exit(1); |