aboutsummaryrefslogtreecommitdiff
path: root/modules/pam_issue
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2020-04-26 11:12:59 +0000
committerDmitry V. Levin <ldv@altlinux.org>2020-04-26 11:12:59 +0000
commitc2c0434bd634a817f2b16ce7f58fc96c04e88b03 (patch)
tree78849930930dd58433ba8da87a0f70e2ffbe4d8a /modules/pam_issue
parent49b9d3039dc63f9c7e0dec51997ac2dc7f1e8703 (diff)
downloadpam-c2c0434bd634a817f2b16ce7f58fc96c04e88b03.tar.gz
pam-c2c0434bd634a817f2b16ce7f58fc96c04e88b03.tar.bz2
pam-c2c0434bd634a817f2b16ce7f58fc96c04e88b03.zip
pam_motd: fix NULL dereference when at least one of motd directories is not available
* modules/pam_motd/pam_motd.c (try_to_display_directories_with_overrides): Do not assign -1U to dirscans_sizes[i] when scandir(motd_dir_path_split[i]) returns an error. Resolves: https://bugzilla.altlinux.org/38389 Fixes: d57ab221 ("pam_motd: Cleanup the code and avoid unnecessary logging")
Diffstat (limited to 'modules/pam_issue')
0 files changed, 0 insertions, 0 deletions