summaryrefslogtreecommitdiff
path: root/databases/openldap/patches/patch-ah
blob: 85418d3788c6acc698bcd879a750c79a711a15fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$NetBSD: patch-ah,v 1.2 2004/07/24 03:32:24 jlam Exp $

--- libraries/libldap/init.c.orig	Thu Jan  1 13:16:29 2004
+++ libraries/libldap/init.c
@@ -532,6 +532,9 @@ void ldap_int_initialize( struct ldapopt
 
 #if defined(LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND) \
 	|| defined(HAVE_TLS) || defined(HAVE_CYRUS_SASL)
+#if defined(LDAP_R_COMPILE)
+	ldap_pvt_thread_initialize();
+#endif
 	ldap_int_hostname = ldap_pvt_get_fqdn( ldap_int_hostname );
 #endif
 	if ( ldap_int_tblsize == 0 )