diff --git a/libraries/libldap_r/thr_cthreads.c b/libraries/libldap_r/thr_cthreads.c index f6526b16ed..5eda39c798 100644 --- a/libraries/libldap_r/thr_cthreads.c +++ b/libraries/libldap_r/thr_cthreads.c @@ -53,7 +53,7 @@ int ldap_pvt_thread_join( ldap_pvt_thread_t thread, void **thread_return ) { void *status; - status = (void *) cthread_join ( tid ); + status = (void *) cthread_join ( thread ); if (thread_return != NULL) { *thread_return = status;