]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:libnet: fix error string for failing samr_ChangePasswordUser4()
authorStefan Metzmacher <metze@samba.org>
Wed, 14 Dec 2022 09:32:31 +0000 (10:32 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 14 Dec 2022 12:41:35 +0000 (12:41 +0000)
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>
source4/libnet/libnet_passwd.c

index 8fc4715a209194a4ee4f216e993613828e40c7a9..60d25689ba2ca3a7be61e15a3f9e48af94dd40b1 100644 (file)
@@ -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;
        }