]> granicus.if.org Git - linux-pam/commit
pam_exec: fix a potential null pointer dereference
authorDaniel Abrecht <daniel.abrecht@hotmail.com>
Thu, 19 Jan 2017 10:35:04 +0000 (11:35 +0100)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 19 Jan 2017 10:35:04 +0000 (10:35 +0000)
commitc8dc2b4c2045bb44a038356751e0f0428afe1171
tree1952cb3947dc9428c84c68111dc2b033d2143dfa
parentdbd1ae9516e2ff9793cf8957111d526a90716862
pam_exec: fix a potential null pointer dereference

Fix a null pointer dereference when pam_prompt returns PAM_SUCCESS
but the response is set to NULL.

* modules/pam_exec/pam_exec.c (call_exec): Do not invoke strndupa
with a null pointer.

Closes: https://github.com/linux-pam/linux-pam/pull/2
modules/pam_exec/pam_exec.c