mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-31 03:59:34 -05:00
specifically check for NULL return from ldap_int_thread_delist(). Also, fixup comment to get rid of compiler warning.
This commit is contained in:
parent
5a33b7509b
commit
df57978436
1 changed files with 3 additions and 3 deletions
|
|
@ -120,7 +120,7 @@ ldap_pvt_thread_pool_init (
|
|||
* but ltp_open_count == 1, so two things happen:
|
||||
* 1) the first client connection fails, and 2) when
|
||||
* slapd is kill'ed, it never terminates since it waits
|
||||
* for all worker threads to exit.
|
||||
* for all worker threads to exit. */
|
||||
|
||||
/* start up one thread, just so there is one. no need to
|
||||
* lock the mutex right now, since no threads are running.
|
||||
|
|
@ -315,8 +315,8 @@ ldap_pvt_thread_pool_destroy ( ldap_pvt_thread_pool_t *tpool, int run_pending )
|
|||
ldap_pvt_thread_mutex_unlock(&pool->ltp_mutex);
|
||||
} while (waiting > 0);
|
||||
|
||||
while (ctx = (ldap_int_thread_ctx_t *)ldap_int_thread_delist(
|
||||
&pool->ltp_pending_list, NULL))
|
||||
while ((ctx = (ldap_int_thread_ctx_t *)ldap_int_thread_delist(
|
||||
&pool->ltp_pending_list, NULL)) != NULL)
|
||||
{
|
||||
free(ctx);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue