From c8dca765a0c984602389bbd707eca7c58cd41b41 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 26 Sep 2014 03:14:53 +0200 Subject: s3:lib/netapi: avoid calling cli_set_username() Change-Id: I3ab768d2df06749187555a16d7b930f7cc8f8b9f Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- source3/lib/netapi/cm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source3/lib/netapi/cm.c b/source3/lib/netapi/cm.c index 4e5bc2f1ae..0e05af8431 100644 --- a/source3/lib/netapi/cm.c +++ b/source3/lib/netapi/cm.c @@ -113,9 +113,7 @@ static WERROR libnetapi_open_ipc_connection(struct libnetapi_ctx *ctx, false, false, lp_client_max_protocol(), 0, 0x20, &cli_ipc); - if (NT_STATUS_IS_OK(status)) { - cli_set_username(cli_ipc, ctx->username); - } else { + if (!NT_STATUS_IS_OK(status)) { cli_ipc = NULL; } TALLOC_FREE(auth_info); -- cgit