r26224: Remove another use of global_loadparm.
[samba.git] / source4 / client / smbmount.c
index 8a106974c2f682a353fd8d6303237679e459a602..1a1371edae8d7f03d7ade07a9d05b78572705f3f 100644 (file)
@@ -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)) {
+       if (!smbcli_negprot(c, lp_cli_maxprotocol(global_loadparm))) {
                DEBUG(0,("%d: protocol negotiation failed\n", sys_getpid()));
                talloc_free(c);
                return NULL;