mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#7608 promoted attrs must have valid ad_index
This commit is contained in:
parent
9649281f7b
commit
6dab36e97a
@ -844,6 +844,9 @@ undef_promote(
|
||||
tmp->ad_next = NULL;
|
||||
/* ad_cname was contiguous, no leak here */
|
||||
tmp->ad_cname = nat->sat_cname;
|
||||
ldap_pvt_thread_mutex_lock( &ad_index_mutex );
|
||||
tmp->ad_index = ++ad_count;
|
||||
ldap_pvt_thread_mutex_unlock( &ad_index_mutex );
|
||||
*n_ad = tmp;
|
||||
n_ad = &tmp->ad_next;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user