1
From 11c59016bd99242aaa24770cdac0db623c7dce23 Mon Sep 17 00:00:00 2001
2
From: =?UTF-8?q?=C3=80lex=20Fiestas?= <afiestas@kde.org>
3
Date: Mon, 28 Apr 2014 18:01:43 +0200
4
Subject: [PATCH 3/5] If kwallet_hash fails, return with PAM_IGNORE
7
pam_kwallet.c | 5 ++++-
8
1 file changed, 4 insertions(+), 1 deletion(-)
10
diff --git a/pam_kwallet.c b/pam_kwallet.c
11
index 5224289..e621795 100644
14
@@ -245,7 +245,10 @@ PAM_EXTERN int pam_sm_authenticate(pam_handle_t *pamh, int flags, int argc, cons
17
char *key = malloc(sizeof(char) * KWALLET_PAM_KEYSIZE);
18
- kwallet_hash(password, userInfo, key);
19
+ if (kwallet_hash(password, userInfo, key) != 0) {
20
+ pam_syslog(pamh, LOG_ERR, "pam_kwallet: Fail into creating the hash");
24
result = pam_set_data(pamh, "kwallet_key", key, NULL);
25
if (result != PAM_SUCCESS) {