From: Stefan Metzmacher Date: Wed, 14 Dec 2022 09:32:31 +0000 (+0100) Subject: s4:libnet: fix error string for failing samr_ChangePasswordUser4() X-Git-Tag: talloc-2.4.0~241 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53d558365161be1793dad78ebcce877c732f2419;p=thirdparty%2Fsamba.git s4:libnet: fix error string for failing samr_ChangePasswordUser4() BUG: https://bugzilla.samba.org/show_bug.cgi?id=15206 Signed-off-by: Stefan Metzmacher Reviewed-by: Björn Baumbach --- diff --git a/source4/libnet/libnet_passwd.c b/source4/libnet/libnet_passwd.c index 8fc4715a209..60d25689ba2 100644 --- a/source4/libnet/libnet_passwd.c +++ b/source4/libnet/libnet_passwd.c @@ -105,13 +105,13 @@ static NTSTATUS libnet_ChangePassword_samr_aes(TALLOC_CTX *mem_ctx, goto done; } if (!NT_STATUS_IS_OK(r.out.result)) { + status = r.out.result; *error_string = talloc_asprintf(mem_ctx, "samr_ChangePasswordUser4 for " "'%s\\%s' failed: %s", server->string, account->string, nt_errstr(status)); - status = r.out.result; goto done; }