diff options
author | des <des@FreeBSD.org> | 2001-11-27 15:35:44 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2001-11-27 15:35:44 +0000 |
commit | c5700fd96e52df0979f14a2418ef0e6ceee10e9a (patch) | |
tree | 2257cf99b6f20e8fa94a0a59d251c57bd9393232 /contrib | |
parent | 401e4af15db27c5729750a01309f8cec05695331 (diff) | |
download | FreeBSD-src-c5700fd96e52df0979f14a2418ef0e6ceee10e9a.zip FreeBSD-src-c5700fd96e52df0979f14a2418ef0e6ceee10e9a.tar.gz |
It's idiotic to return PAM_PERM_DENIED when the item argument is NULL;
PAM_BUF_ERR is much closer to the truth.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/libpam/libpam/pam_item.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/libpam/libpam/pam_item.c b/contrib/libpam/libpam/pam_item.c index eec341f..3d3db63 100644 --- a/contrib/libpam/libpam/pam_item.c +++ b/contrib/libpam/libpam/pam_item.c @@ -2,6 +2,7 @@ /* * $Id: pam_item.c,v 1.3 2001/01/22 06:07:28 agmorgan Exp $ + * $FreeBSD$ */ #include <ctype.h> @@ -156,7 +157,7 @@ int pam_get_item (const pam_handle_t *pamh, int item_type, const void **item) if (item == NULL) { _pam_system_log(LOG_ERR, "pam_get_item: nowhere to place requested item"); - return PAM_PERM_DENIED; + return PAM_BUF_ERR; } switch (item_type) { |