summaryrefslogtreecommitdiff
path: root/source3/lib/netapi
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-08-11 13:46:34 +0200
committerStefan Metzmacher <metze@samba.org>2013-08-15 09:07:05 +0200
commit7e455e9ed2b298df6b735a89abdd75564375ef34 (patch)
treeac96b8c419ce00d1d66d9638490a191053f93193 /source3/lib/netapi
parent14421323d1dd3744cb8553f0e6a5a7436554bf2d (diff)
downloadsamba-7e455e9ed2b298df6b735a89abdd75564375ef34.tar.gz
samba-7e455e9ed2b298df6b735a89abdd75564375ef34.tar.bz2
samba-7e455e9ed2b298df6b735a89abdd75564375ef34.zip
s3:lib/netapi: make use of lp_cli_maxprotocol()
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/lib/netapi')
-rw-r--r--source3/lib/netapi/cm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/netapi/cm.c b/source3/lib/netapi/cm.c
index cbc93d9784..1cfdccfd1d 100644
--- a/source3/lib/netapi/cm.c
+++ b/source3/lib/netapi/cm.c
@@ -111,7 +111,7 @@ static WERROR libnetapi_open_ipc_connection(struct libnetapi_ctx *ctx,
server_name, "IPC$",
auth_info,
false, false,
- PROTOCOL_NT1,
+ lp_cli_maxprotocol(),
0, 0x20, &cli_ipc);
if (NT_STATUS_IS_OK(status)) {
cli_set_username(cli_ipc, ctx->username);