summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-08-11 13:46:34 +0200
committerKarolin Seeger <kseeger@samba.org>2013-08-30 11:53:22 +0200
commitf017d5941a2d8491f299fe0ccd6dffc988472885 (patch)
tree9cc0013595f11cca2d56c9f2c3dbbd35efca0d8f
parentaadf3106a2eeb515d39f8b636a4e5e3dee4b639e (diff)
downloadsamba-f017d5941a2d8491f299fe0ccd6dffc988472885.tar.gz
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> (cherry picked from commit 7e455e9ed2b298df6b735a89abdd75564375ef34)
-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 36e8731fa9..da3d2e1eb1 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);