wolfsshd: zero stored hash copy before free

Issue: F-57
pull/968/head
John Safranek 2026-05-07 10:40:13 -07:00 committed by Paul Adelsbach
parent a8a443214b
commit 90d5d44910
1 changed files with 1 additions and 0 deletions

View File

@ -437,6 +437,7 @@ static int CheckPasswordUnix(const char* usr, const byte* pw, word32 pwSz, WOLFS
WFREE(pwStr, NULL, DYNTYPE_STRING);
}
if (storedHashCpy != NULL) {
ForceZero(storedHashCpy, (word32)WSTRLEN(storedHashCpy) + 1);
WFREE(storedHashCpy, NULL, DYNTYPE_STRING);
}