summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2011-01-19 09:31:31 +0100
committerStephen Gallagher <sgallagh@redhat.com>2011-01-19 09:53:21 -0500
commit2fac679ce284b21bd49b4241f0b9e5a5db1bd0c6 (patch)
tree854f54e2ac31b19d04a02aae77ffb50e29027bb0
parent80842de291288f72c9fab70a47adf60c7d0712b4 (diff)
downloadsssd-2fac679ce284b21bd49b4241f0b9e5a5db1bd0c6.tar.gz
sssd-2fac679ce284b21bd49b4241f0b9e5a5db1bd0c6.tar.bz2
sssd-2fac679ce284b21bd49b4241f0b9e5a5db1bd0c6.zip
Fix return value check
-rw-r--r--src/providers/ldap/ldap_auth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/providers/ldap/ldap_auth.c b/src/providers/ldap/ldap_auth.c
index 2d66b1d6..853231b3 100644
--- a/src/providers/ldap/ldap_auth.c
+++ b/src/providers/ldap/ldap_auth.c
@@ -998,7 +998,7 @@ static void sdap_pam_auth_done(struct tevent_req *req)
&result, NULL,
&pw_expire_type, &pw_expire_data);
talloc_zfree(req);
- if (ret) {
+ if (ret != EOK) {
state->pd->pam_status = PAM_SYSTEM_ERR;
dp_err = DP_ERR_FATAL;
goto done;
@@ -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 != EOK) {
DEBUG(2, ("Failed to cache password for %s\n",
state->username));
} else {