diff options
author | Benny Baumann <BenBE@geshi.org> | 2023-12-12 13:10:59 +0100 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2023-12-19 12:22:59 +0000 |
commit | de910eeee54c1f38e9f8e83d8cd9c048f65051eb (patch) | |
tree | 14145b434676794161697b29dded8e774fd38b51 /modules/pam_unix/support.c | |
parent | ebc35c605beca9020bb743134575fdc558dfdaf5 (diff) | |
download | pam-de910eeee54c1f38e9f8e83d8cd9c048f65051eb.tar.gz pam-de910eeee54c1f38e9f8e83d8cd9c048f65051eb.tar.bz2 pam-de910eeee54c1f38e9f8e83d8cd9c048f65051eb.zip |
pam_timestamp: ensure we get zero-initialized memory
This ensures that the whole buffer is in a somewhat defined state all
the time even when some function calls write into the buffer only
partially. This is not strictly necessary, as short writes into
the buffer are checked, but it's good practice anyway.
* modules/pam_timestamp/hmac_openssl_wrapper.c (generate_key):
Replace malloc with calloc.
Diffstat (limited to 'modules/pam_unix/support.c')
0 files changed, 0 insertions, 0 deletions