diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-09-26 03:14:53 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2014-10-17 12:57:07 +0200 |
commit | c8dca765a0c984602389bbd707eca7c58cd41b41 (patch) | |
tree | de2b7a4d84edcb7239ceee5983e668a3b70df124 /source3/lib/netapi/cm.c | |
parent | 40bc651f95061fdd27db8b0ce4da0e38c209c3db (diff) | |
download | samba-c8dca765a0c984602389bbd707eca7c58cd41b41.tar.gz samba-c8dca765a0c984602389bbd707eca7c58cd41b41.tar.xz samba-c8dca765a0c984602389bbd707eca7c58cd41b41.zip |
s3:lib/netapi: avoid calling cli_set_username()
Change-Id: I3ab768d2df06749187555a16d7b930f7cc8f8b9f
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
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); |