summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-08-11 14:01:36 +0200
committerStefan Metzmacher <metze@samba.org>2013-08-15 09:07:05 +0200
commitdaeb0bdfc49ace6151bbca34cbbf55486d66abb6 (patch)
tree6b57c4df1335ca0ce3c8dfa066a77c79cedeb664 /source3/libsmb
parent42a493dff0e4ade04b6e94caf0b7ae14b6cf60eb (diff)
downloadsamba-daeb0bdfc49ace6151bbca34cbbf55486d66abb6.tar.gz
samba-daeb0bdfc49ace6151bbca34cbbf55486d66abb6.tar.bz2
samba-daeb0bdfc49ace6151bbca34cbbf55486d66abb6.zip
s3:libsmb: make use of lp_cli_{min,max}protocol() in SMBC_server_internal()
https://bugzilla.samba.org/show_bug.cgi?id=9514 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/libsmb_server.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/libsmb/libsmb_server.c b/source3/libsmb/libsmb_server.c
index 5c665bfbd1..35b31d85db 100644
--- a/source3/libsmb/libsmb_server.c
+++ b/source3/libsmb/libsmb_server.c
@@ -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;