diff options
author | Stefan Metzmacher <metze@samba.org> | 2022-12-14 10:32:31 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2022-12-14 13:44:17 +0000 |
commit | 77fb5b4762198d7fa1727b6e0b35cb172de1d627 (patch) | |
tree | 6ebca64ba10afd15062f5168ccf63b7c90308241 | |
parent | 5048d63c92ea2a8ccdb1a5a25ac19b2a423ca09d (diff) | |
download | samba-77fb5b4762198d7fa1727b6e0b35cb172de1d627.tar.gz |
s4:libnet: fix error string for failing samr_ChangePasswordUser4()
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15206
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Björn Baumbach <bbaumbach@samba.org>
(cherry picked from commit 53d558365161be1793dad78ebcce877c732f2419)
-rw-r--r-- | source4/libnet/libnet_passwd.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |