mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#9146 syncprov: fix sessionlog init
This commit is contained in:
parent
8550e91fcc
commit
57dbe995b8
@ -3099,12 +3099,7 @@ sp_cf_gen(ConfigArgs *c)
|
||||
}
|
||||
sl = si->si_logs;
|
||||
if ( !sl ) {
|
||||
sl = ch_malloc( sizeof( sessionlog ));
|
||||
sl->sl_mincsn = NULL;
|
||||
sl->sl_sids = NULL;
|
||||
sl->sl_num = 0;
|
||||
sl->sl_numcsns = 0;
|
||||
sl->sl_head = sl->sl_tail = NULL;
|
||||
sl = ch_calloc( 1, sizeof( sessionlog ));
|
||||
ldap_pvt_thread_mutex_init( &sl->sl_mutex );
|
||||
si->si_logs = sl;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user