s3:libsmb: make use of lp_cli_{min,max}protocol() in SMBC_server_internal()
authorStefan Metzmacher <metze@samba.org>
Sun, 11 Aug 2013 12:01:36 +0000 (14:01 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 15 Aug 2013 07:07:05 +0000 (09:07 +0200)
https://bugzilla.samba.org/show_bug.cgi?id=9514

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/libsmb/libsmb_server.c

index 5c665bfbd18ca4c88125c40d132eaae41349cd55..35b31d85dbecae88a7669d587d8336862805f1b9 100644 (file)
@@ -449,9 +449,9 @@ SMBC_server_internal(TALLOC_CTX *ctx,
 
        cli_set_timeout(c, smbc_getTimeout(context));
 
-       status = smbXcli_negprot(c->conn, c->timeout, PROTOCOL_CORE,
-                                PROTOCOL_NT1);
-
+       status = smbXcli_negprot(c->conn, c->timeout,
+                                lp_cli_minprotocol(),
+                                lp_cli_maxprotocol());
        if (!NT_STATUS_IS_OK(status)) {
                cli_shutdown(c);
                errno = ETIMEDOUT;