[Date Prev][Date Next]
(ITS#4802) refint mutex bug
Full_Name: Hallvard B Furuseth
Submission from: (NULL) (188.8.131.52)
refint_data *id = on->on_bi.bi_private;
memset( id, 0, sizeof(*id));
which overwrites id->qmutex. Then refint_db_destroy() does
ldap_pvt_thread_mutex_destroy( &id->qmutex );
which can fail.
I don't know what the required lifetime for that mutex is -
if refint_close() must preserve it, or if it can destroy it
and set on->on_bi.bi_private = NULL (so refint_db_destroy
will do nothing), or something else.