Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/password_323.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,12 @@ void make_scrambled_password(char scrambled_password[42], const char password[25
SHA1Init(&ctx);
SHA1Update(&ctx, h0, sizeof h0);
#ifdef HAVE_EXPLICIT_BZERO
explicit_bzero(h0, strlen(password));
explicit_bzero(h0, sizeof h0);
#else
volatile char *pnt_ = (volatile char *) h0;
size_t i = (size_t) 0U;

while (i < strlen(password)) {
while (i < sizeof h0) {
pnt_[i++] = 0U;
}
#endif
Expand Down