mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#9334 slapo-ppolicy re-fix ITS#9302
The mutex_lock was being skipped in the lockout case, but still calling mutex_unlock at the end.
This commit is contained in:
parent
6d7c2511b4
commit
ed356c55d9
@ -1414,12 +1414,12 @@ ppolicy_bind_response( Operation *op, SlapReply *rs )
|
||||
LDAPControl *ctrl = NULL;
|
||||
Entry *e;
|
||||
|
||||
ldap_pvt_thread_mutex_lock( &pi->pwdFailureTime_mutex );
|
||||
/* If we already know it's locked, just get on with it */
|
||||
if ( ppb->pErr != PP_noError ) {
|
||||
goto locked;
|
||||
}
|
||||
|
||||
ldap_pvt_thread_mutex_lock( &pi->pwdFailureTime_mutex );
|
||||
op->o_bd->bd_info = (BackendInfo *)on->on_info;
|
||||
rc = be_entry_get_rw( op, &op->o_req_ndn, NULL, NULL, 0, &e );
|
||||
op->o_bd->bd_info = bi;
|
||||
|
Loading…
Reference in New Issue
Block a user