From c7d6e6f57174a684c5b84b31993b1d92311d4b80 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 8 Sep 2010 19:01:11 -0700 Subject: s3: Remove a nested if-statement --- source3/winbindd/winbindd_pam.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/source3/winbindd/winbindd_pam.c b/source3/winbindd/winbindd_pam.c index eda812ef3c..48df304f87 100644 --- a/source3/winbindd/winbindd_pam.c +++ b/source3/winbindd/winbindd_pam.c @@ -1612,18 +1612,16 @@ process_result: goto done; } - if ((state->request->flags & WBFLAG_PAM_CACHED_LOGIN)) { + if ((state->request->flags & WBFLAG_PAM_CACHED_LOGIN) + && lp_winbind_offline_logon()) { - if (lp_winbind_offline_logon()) { - result = winbindd_store_creds(domain, + result = winbindd_store_creds(domain, state->mem_ctx, state->request->data.auth.user, state->request->data.auth.pass, info3); - } } - if (state->request->flags & WBFLAG_PAM_GET_PWD_POLICY) { struct winbindd_domain *our_domain = find_our_domain(); -- cgit