mirror of
https://github.com/samba-team/samba.git
synced 2025-01-19 10:03:58 +03:00
check for valid pointer before calling memset() in samr_clear_sam_passwd
This commit is contained in:
parent
c29dfdc46a
commit
a6a4a17f6a
@ -79,8 +79,8 @@ static void samr_clear_sam_passwd(SAM_ACCOUNT *sam_pass)
|
||||
if (!sam_pass)
|
||||
return;
|
||||
|
||||
memset(sam_pass->lm_pw, '\0', 16);
|
||||
memset(sam_pass->nt_pw, '\0', 16);
|
||||
if (sam_pass->lm_pw) memset(sam_pass->lm_pw, '\0', 16);
|
||||
if (sam_pass->nt_pw) memset(sam_pass->nt_pw, '\0', 16);
|
||||
}
|
||||
|
||||
/*******************************************************************
|
||||
|
Loading…
x
Reference in New Issue
Block a user