diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2022-07-15 08:00:00 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2022-07-15 08:00:00 +0000 |
commit | 37b47c08ce9127e23bc26a79c2f715daf8466f50 (patch) | |
tree | f203d24fe45fcb860e5688e6435c4a54010854c7 /maint | |
parent | 31645f4830162a3dd49513b74a5e56f40777e98c (diff) | |
download | pam-37b47c08ce9127e23bc26a79c2f715daf8466f50.tar.gz pam-37b47c08ce9127e23bc26a79c2f715daf8466f50.tar.bz2 pam-37b47c08ce9127e23bc26a79c2f715daf8466f50.zip |
_pam_add_handler: make sure struct handler is properly initialized on error path
* libpam/pam_handlers.c (_pam_add_handler): Use calloc instead of malloc
for struct handler allocation to avoid returning garbage in some fields
of the structure on error path.
Resolves: https://github.com/linux-pam/linux-pam/issues/475
Diffstat (limited to 'maint')
0 files changed, 0 insertions, 0 deletions