summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/rpc_server/srv_samr_nt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c
index 862917b418..389a6d532f 100644
--- a/source3/rpc_server/srv_samr_nt.c
+++ b/source3/rpc_server/srv_samr_nt.c
@@ -1813,7 +1813,8 @@ NTSTATUS _samr_ChangePasswordUser(pipes_struct *p,
nt_pass = pdb_get_nt_passwd(pwd);
if (!lm_pass || !nt_pass) {
- return NT_STATUS_WRONG_PASSWORD;
+ status = NT_STATUS_WRONG_PASSWORD;
+ goto out;
}
memcpy(&lm_pwd.hash, lm_pass, sizeof(lm_pwd.hash));