Skip to content

Commit

Permalink
crypt: Reset initialized field after computation.
Browse files Browse the repository at this point in the history
Fixes #204.
  • Loading branch information
besser82 committed Jan 15, 2025
1 parent 88ecfa5 commit 2c65064
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/crypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ do_crypt (const char *phrase, const char *setting, struct crypt_data *data)
cint->alg_specific, sizeof cint->alg_specific);

explicit_bzero (data->internal, sizeof data->internal);
data->initialized = 0;
}

#if INCLUDE_crypt_rn
Expand Down

0 comments on commit 2c65064

Please sign in to comment.