aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/pam_faillock/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/pam_faillock/main.c b/modules/pam_faillock/main.c
index 136be834..57989ba6 100644
--- a/modules/pam_faillock/main.c
+++ b/modules/pam_faillock/main.c
@@ -247,7 +247,8 @@ do_user(struct options *opts, const char *user)
#ifdef HAVE_LIBAUDIT
}
if ((audit_fd=audit_open()) >= 0) {
- audit_log_acct_message(audit_fd, AUDIT_USER_MGMT, NULL,
+ (void) !audit_log_acct_message(audit_fd,
+ AUDIT_USER_MGMT, NULL,
"faillock-reset", user,
pwd != NULL ? pwd->pw_uid : AUDIT_NO_ID,
NULL, NULL, NULL, rv == 0);