diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2020-04-26 11:12:59 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2020-04-26 11:12:59 +0000 |
commit | 70ee22ba4414b47dcd4ea2dfb8f3ba462b38718d (patch) | |
tree | 7994d78e289868dd62a2083c0ccec781a2e546c1 /modules/pam_unix/unix_chkpwd.c | |
parent | 4efb14c2ae1c2cf8c0aba4f626a0942295017f40 (diff) | |
download | pam-70ee22ba4414b47dcd4ea2dfb8f3ba462b38718d.tar.gz pam-70ee22ba4414b47dcd4ea2dfb8f3ba462b38718d.tar.bz2 pam-70ee22ba4414b47dcd4ea2dfb8f3ba462b38718d.zip |
pam_motd: fix misleading error diagnostics
Do not invoke calloc with the first argument equal to zero as the return
value can be NULL which is undistinguishable from memory allocation
error.
* modules/pam_motd/pam_motd.c
(try_to_display_directories_with_overrides): Skip if there are no
directory entries (dirscans_size_total == 0).
Fixes: f9c9c721 ("pam_motd: Support multiple motd paths specified, with filename overrides (#69)")
Diffstat (limited to 'modules/pam_unix/unix_chkpwd.c')
0 files changed, 0 insertions, 0 deletions