[SSSD] [PATCH] Fix return value check
Sumit Bose
sbose at redhat.com
Wed Jan 19 11:16:38 UTC 2011
Hi,
this patch fixes a typo which leads to irritation log messages.
bye,
Sumit
-------------- next part --------------
From c530a022096338a7c7e4e09da96afa3398e599a3 Mon Sep 17 00:00:00 2001
From: Sumit Bose <sbose at redhat.com>
Date: Wed, 19 Jan 2011 09:31:31 +0100
Subject: [PATCH] Fix return value check
---
src/providers/ldap/ldap_auth.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/providers/ldap/ldap_auth.c b/src/providers/ldap/ldap_auth.c
index 2d66b1d..f6ff46f 100644
--- a/src/providers/ldap/ldap_auth.c
+++ b/src/providers/ldap/ldap_auth.c
@@ -1087,7 +1087,7 @@ static void sdap_pam_auth_done(struct tevent_req *req)
state->username, password);
/* password caching failures are not fatal errors */
- if (!ret) {
+ if (ret) {
DEBUG(2, ("Failed to cache password for %s\n",
state->username));
} else {
--
1.7.3.3
More information about the sssd-devel
mailing list