s3:libsmb: use lp_cli_minprotocol() in do_connect()
authorStefan Metzmacher <metze@samba.org>
Sun, 11 Aug 2013 12:00:45 +0000 (14:00 +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/clidfs.c

index 1ed6ac5fc146191a5f9fc68d702803501de6888d..1d92843f48fec3e6e5827324d126eacf47c403d9 100644 (file)
@@ -150,7 +150,8 @@ static NTSTATUS do_connect(TALLOC_CTX *ctx,
        }
        DEBUG(4,(" session request ok\n"));
 
-       status = smbXcli_negprot(c->conn, c->timeout, PROTOCOL_CORE,
+       status = smbXcli_negprot(c->conn, c->timeout,
+                                lp_cli_minprotocol(),
                                 max_protocol);
 
        if (!NT_STATUS_IS_OK(status)) {