diff options
Diffstat (limited to 'source3/lib/netapi/cm.c')
-rw-r--r-- | source3/lib/netapi/cm.c | 4 |
1 files changed, 1 insertions, 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); |