blob: cbf5ef14e3f985c1311ffd0cc5e45f0312abda91 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
$NetBSD: patch-ah,v 1.9 2012/08/06 13:33:38 adam Exp $
--- libraries/libldap/init.c.orig 2012-07-31 16:39:26.000000000 +0000
+++ libraries/libldap/init.c
@@ -643,7 +643,11 @@ void ldap_int_initialize( struct ldapopt
#if defined(HAVE_TLS) || defined(HAVE_CYRUS_SASL)
{
LDAP_MUTEX_LOCK( &ldap_int_hostname_mutex );
- 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 );
|