summaryrefslogtreecommitdiff
path: root/databases/openldap/patches/patch-ah
blob: a75fb2a2d3c5dfd89c69caba0e178e6e2c94b7d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-ah,v 1.7 2008/01/13 17:15:16 ghen Exp $

--- libraries/libldap/init.c.orig	2007-09-01 01:13:55.000000000 +0200
+++ libraries/libldap/init.c
@@ -581,7 +581,11 @@ void ldap_int_initialize( struct ldapopt
 
 #if defined(HAVE_TLS) || defined(HAVE_CYRUS_SASL)
 	{
-		char	*name = ldap_int_hostname;
+		char	*name;
+#if defined(LDAP_R_COMPILE)
+		ldap_pvt_thread_initialize();
+#endif
+		name = ldap_int_hostname;
 
 		ldap_int_hostname = ldap_pvt_get_fqdn( name );