summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2001-11-27 15:35:44 +0000
committerdes <des@FreeBSD.org>2001-11-27 15:35:44 +0000
commitc5700fd96e52df0979f14a2418ef0e6ceee10e9a (patch)
tree2257cf99b6f20e8fa94a0a59d251c57bd9393232 /contrib
parent401e4af15db27c5729750a01309f8cec05695331 (diff)
downloadFreeBSD-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.c3
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) {
OpenPOWER on IntegriCloud