diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2020-05-02 00:09:48 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2020-05-06 14:00:06 +0000 |
commit | 8db2cfd68951a31f1f14deeb9f9ed616a69d95c0 (patch) | |
tree | 715017317660fd46e39f54e9f53e8d0c1e2d8f52 /doc | |
parent | a14e4b0417944a6d31cd5f7162e06cf9939aa7a4 (diff) | |
download | pam-8db2cfd68951a31f1f14deeb9f9ed616a69d95c0.tar.gz pam-8db2cfd68951a31f1f14deeb9f9ed616a69d95c0.tar.bz2 pam-8db2cfd68951a31f1f14deeb9f9ed616a69d95c0.zip |
pam_get_user: consistently return PAM_SYSTEM_ERR if user specified a NULL pointer
pam_get_user returns PAM_SYSTEM_ERR in case of pamh == NULL.
In case of user == NULL, however, it used to return PAM_PERM_DENIED,
and in case of NULL conversation function it used to return
PAM_SERVICE_ERR.
According to the documentation, PAM_SYSTEM_ERR shall be returned
if a NULL pointer was submitted.
Fix this inconsistency and return PAM_SYSTEM_ERR in each of these
programming error cases.
* libpam/pam_item.c (pam_get_user): Return PAM_SYSTEM_ERR instead of
PAM_PERM_DENIED if user == NULL. Return PAM_SYSTEM_ERR instead of
PAM_SERVICE_ERR if pamh->pam_conversation == NULL.
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions