mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
It's idiotic to return PAM_PERM_DENIED when the item argument is NULL;
PAM_BUF_ERR is much closer to the truth.
This commit is contained in:
parent
95693bfc00
commit
8a4ce01402
1 changed files with 2 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue