diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2012-01-24 16:49:45 +0100 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-01-26 20:21:47 -0500 |
commit | ab2d04a1c6c8b2a618813f3e066de0e2b07f44e9 (patch) | |
tree | 025ad12290c77a568df7580519f19d38c3ca574b /src/responder/pam | |
parent | 8941d820e05e6a93225b45021dcc314a004f20bc (diff) | |
download | sssd-ab2d04a1c6c8b2a618813f3e066de0e2b07f44e9.tar.gz sssd-ab2d04a1c6c8b2a618813f3e066de0e2b07f44e9.tar.bz2 sssd-ab2d04a1c6c8b2a618813f3e066de0e2b07f44e9.zip |
PAM: Do not overwrite ret
Diffstat (limited to 'src/responder/pam')
-rw-r--r-- | src/responder/pam/pamsrv_cmd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/responder/pam/pamsrv_cmd.c b/src/responder/pam/pamsrv_cmd.c index 0f9fd5ed..c98b4ac0 100644 --- a/src/responder/pam/pamsrv_cmd.c +++ b/src/responder/pam/pamsrv_cmd.c @@ -1045,7 +1045,7 @@ static void pam_check_user_dp_callback(uint16_t err_maj, uint32_t err_min, } ret = pam_check_user_search(preq); - if (ret == EOK || ret == ENOENT) { + if (ret == EOK) { /* Make sure we don't go to the ID provider too often */ name = preq->domain->case_sensitive ? talloc_strdup(preq, preq->pd->user) : @@ -1066,9 +1066,7 @@ static void pam_check_user_dp_callback(uint16_t err_maj, uint32_t err_min, * data provider again next time. */ } - } - if (ret == EOK) { pam_dom_forwarder(preq); } |