mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-02 11:59:45 -05:00
ITS#9959 Do not read c_auth without lock
This commit is contained in:
parent
176680e824
commit
dcbb48dec7
1 changed files with 6 additions and 6 deletions
|
|
@ -705,6 +705,12 @@ lload_monitor_conn_update( Operation *op, SlapReply *rs, Entry *e, void *priv )
|
|||
} break;
|
||||
}
|
||||
|
||||
attr_delete( &e->e_attrs, ad_olmConnectionAuthzDN );
|
||||
if ( !BER_BVISNULL( &c->c_auth ) ) {
|
||||
attr_merge_normalize_one( e, ad_olmConnectionAuthzDN,
|
||||
&c->c_auth, op->o_tmpmemctx );
|
||||
}
|
||||
|
||||
CONNECTION_UNLOCK(c);
|
||||
|
||||
a = attr_find( e->e_attrs, ad_olmConnectionType );
|
||||
|
|
@ -723,12 +729,6 @@ lload_monitor_conn_update( Operation *op, SlapReply *rs, Entry *e, void *priv )
|
|||
}
|
||||
a->a_vals[0] = bv_state;
|
||||
|
||||
attr_delete( &e->e_attrs, ad_olmConnectionAuthzDN );
|
||||
if ( !BER_BVISNULL( &c->c_auth ) ) {
|
||||
attr_merge_normalize_one( e, ad_olmConnectionAuthzDN,
|
||||
&c->c_auth, op->o_tmpmemctx );
|
||||
}
|
||||
|
||||
a = attr_find( e->e_attrs, ad_olmPendingOps );
|
||||
assert( a != NULL );
|
||||
UI2BV( &a->a_vals[0], pending );
|
||||
|
|
|
|||
Loading…
Reference in a new issue