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 | b77aa28f46596773110e842d79b65d3fdce9ed22 (patch) | |
tree | 6de2203aa2779ccf51512138eb55df2550ad1936 /examples/check_user.c | |
parent | 48090491ef704ef2c61951b7dcbcd4373dcb5c5d (diff) | |
download | pam-b77aa28f46596773110e842d79b65d3fdce9ed22.tar.gz pam-b77aa28f46596773110e842d79b65d3fdce9ed22.tar.bz2 pam-b77aa28f46596773110e842d79b65d3fdce9ed22.zip |
pam_motd: fix NULL dereference on error path
* modules/pam_motd/pam_motd.c
(try_to_display_directories_with_overrides): Do not access
elements of dirscans_sizes array if dirscans_sizes == NULL
due to an earlier memory allocation error.
Fixes: f9c9c721 ("pam_motd: Support multiple motd paths specified, with filename overrides (#69)")
Diffstat (limited to 'examples/check_user.c')
0 files changed, 0 insertions, 0 deletions