1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-01 05:47:28 +03:00

Fix wrong condition for error string assignment

Signed-off-by: Swen Schillig <swen@vnet.ibm.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>

Autobuild-User(master): David Disseldorp <ddiss@samba.org>
Autobuild-Date(master): Thu Jan 25 17:19:12 CET 2018 on sn-devel-144
This commit is contained in:
Swen Schillig 2018-01-25 11:02:15 +01:00 committed by David Disseldorp
parent 89c3a1ebbe
commit 849169a7b6

View File

@ -929,7 +929,7 @@ NTSTATUS libnet_Join_member(struct libnet_context *ctx,
uint32_t acct_type = 0;
const char *account_name;
const char *netbios_name;
const char *error_string;
const char *error_string = NULL;
r->out.error_string = NULL;
@ -1000,7 +1000,7 @@ NTSTATUS libnet_Join_member(struct libnet_context *ctx,
status = provision_store_self_join(ctx, ctx->lp_ctx, ctx->event_ctx, set_secrets, &error_string);
if (!NT_STATUS_IS_OK(status)) {
if (r->out.error_string) {
if (error_string) {
r->out.error_string = talloc_steal(mem_ctx, error_string);
} else {
r->out.error_string