1
0
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:
Günther Deschner 2009-05-08 01:23:54 +02:00
parent c469ec5c10
commit d7b32b51f8

View File

@ -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));