mirror of
https://github.com/samba-team/samba.git
synced 2025-05-27 17:05:51 +03:00
s3-samr: Fix potential memory leak in _samr_ChangePasswordUser().
Guenther
This commit is contained in:
parent
c469ec5c10
commit
d7b32b51f8
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user