]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9156 Keep module info around for longer
authorOndřej Kuzník <ondra@mistotebe.net>
Thu, 24 Oct 2019 12:41:07 +0000 (13:41 +0100)
committerOndřej Kuzník <ondra@mistotebe.net>
Thu, 23 Jan 2020 23:46:28 +0000 (23:46 +0000)
servers/slapd/overlays/ppolicy.c

index e939b1bfe80ec7bb2f4951b71061661225a91e36..4c9e54a631250f97b1774630c6b50162a3961d99 100644 (file)
@@ -1122,6 +1122,7 @@ ppolicy_bind_response( Operation *op, SlapReply *rs )
 {
        ppbind *ppb = op->o_callback->sc_private;
        slap_overinst *on = ppb->on;
+       pp_info *pi = on->on_bi.bi_private;
        Modifications *mod = ppb->mod, *m;
        int pwExpired = 0;
        int ngut = -1, warn = -1, age, rc;
@@ -1411,7 +1412,6 @@ locked:
                Operation op2 = *op;
                SlapReply r2 = { REP_RESULT };
                slap_callback cb = { NULL, slap_null_cb, NULL, NULL };
-               pp_info *pi = on->on_bi.bi_private;
                LDAPControl c, *ca[2];
 
                op2.o_tag = LDAP_REQ_MODIFY;
@@ -1452,7 +1452,6 @@ locked:
 
        if ( ppb->send_ctrl ) {
                LDAPControl *ctrl = NULL;
-               pp_info *pi = on->on_bi.bi_private;
 
                /* Do we really want to tell that the account is locked? */
                if ( ppb->pErr == PP_accountLocked && !pi->use_lockout ) {