From: Ondřej Kuzník Date: Thu, 24 Oct 2019 12:41:07 +0000 (+0100) Subject: ITS#9156 Keep module info around for longer X-Git-Tag: OPENLDAP_REL_ENG_2_5_0ALPHA~63^2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79728709e975e423df80ef90282f4d17812dbc9d;p=thirdparty%2Fopenldap.git ITS#9156 Keep module info around for longer --- diff --git a/servers/slapd/overlays/ppolicy.c b/servers/slapd/overlays/ppolicy.c index e939b1bfe8..4c9e54a631 100644 --- a/servers/slapd/overlays/ppolicy.c +++ b/servers/slapd/overlays/ppolicy.c @@ -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 ) {