summaryrefslogtreecommitdiff
path: root/modules/pam_unix/support.c
diff options
context:
space:
mode:
authorThorsten Kukuk <kukuk@thkukuk.de>2005-07-26 06:40:44 +0000
committerThorsten Kukuk <kukuk@thkukuk.de>2005-07-26 06:40:44 +0000
commit36c62d04e3ba798dbfcf01a7892f31d5fe1a8646 (patch)
tree863e1544bd0f51c8533857dc6295a07df072e360 /modules/pam_unix/support.c
parentdb615c19519745fcff13d3fc8b27c582130bb464 (diff)
Relevant BUGIDs: mailing list
Purpose of commit: bugfix Commit summary: --------------- Don't ignore return values of pam_get_item
Diffstat (limited to 'modules/pam_unix/support.c')
-rw-r--r--modules/pam_unix/support.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/pam_unix/support.c b/modules/pam_unix/support.c
index f399189d..bb75298c 100644
--- a/modules/pam_unix/support.c
+++ b/modules/pam_unix/support.c
@@ -816,8 +816,11 @@ int _unix_verify_password(pam_handle_t * pamh, const char *name
new->name = x_strdup(login_name);
/* any previous failures for this user ? */
- pam_get_data(pamh, data_name, &void_old);
- old = void_old;
+ if (pam_get_data(pamh, data_name, &void_old)
+ == PAM_SUCCESS)
+ old = void_old;
+ else
+ old = NULL;
if (old != NULL) {
new->count = old->count + 1;