Commit 1e763434 authored by Hallvard Furuseth's avatar Hallvard Furuseth
Browse files

Unlock new_cached_query->rwlock before destroying it.

Fixes rev 1.210 (new since last OpenLDAP release).
parent 61029a3e
...@@ -1601,6 +1601,8 @@ add_query( ...@@ -1601,6 +1601,8 @@ add_query(
templ->no_of_queries++; templ->no_of_queries++;
} else { } else {
ldap_pvt_thread_mutex_destroy(&new_cached_query->answerable_cnt_mutex); ldap_pvt_thread_mutex_destroy(&new_cached_query->answerable_cnt_mutex);
if (wlock)
ldap_pvt_thread_rdwr_wunlock(&new_cached_query->rwlock);
ldap_pvt_thread_rdwr_destroy( &new_cached_query->rwlock ); ldap_pvt_thread_rdwr_destroy( &new_cached_query->rwlock );
ch_free( new_cached_query ); ch_free( new_cached_query );
new_cached_query = find_filter( op, qbase->scopes[query->scope], new_cached_query = find_filter( op, qbase->scopes[query->scope],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment