ITS#9146 syncprov: fix sessionlog init

This commit is contained in:
Howard Chu 2020-01-08 22:22:14 +00:00
parent 8550e91fcc
commit 57dbe995b8

View File

@ -3099,12 +3099,7 @@ sp_cf_gen(ConfigArgs *c)
} }
sl = si->si_logs; sl = si->si_logs;
if ( !sl ) { if ( !sl ) {
sl = ch_malloc( sizeof( sessionlog )); sl = ch_calloc( 1, 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;
ldap_pvt_thread_mutex_init( &sl->sl_mutex ); ldap_pvt_thread_mutex_init( &sl->sl_mutex );
si->si_logs = sl; si->si_logs = sl;
} }