From 79728709e975e423df80ef90282f4d17812dbc9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Kuzn=C3=ADk?= Date: Thu, 24 Oct 2019 13:41:07 +0100 Subject: [PATCH] ITS#9156 Keep module info around for longer --- servers/slapd/overlays/ppolicy.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 ) {