]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Fix minor Pth initialization bug
authorKurt Zeilenga <kurt@openldap.org>
Tue, 13 Jun 2000 02:46:45 +0000 (02:46 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 13 Jun 2000 02:46:45 +0000 (02:46 +0000)
CHANGES
libraries/liblthread/thr_pth.c

diff --git a/CHANGES b/CHANGES
index 77682733ca01bf89cf96646b240bac7d7d6662c6..533ce4d35c96de8df9aac50ede2f87b92a105450 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -4,6 +4,7 @@ Changes included in OpenLDAP 1.2.12 Engineering
        CVS Tag: OPENLDAP_REL_ENG_1_2
        Fixed ldapmodify ldaphost NULL bug
        Fixed ldapsearch uninitialized fp bug
+       Fixed Pth initialization bug
        Build Environment
                Ignore make clean rm failure
 
index 7894f4f85f1149cc64cf3edbdab0d707b0fa04cb..f67d304efac925521b3cc7e903047157d2ddeb83 100644 (file)
@@ -27,9 +27,14 @@ static pth_attr_t detach_attr;
 int
 ldap_pvt_thread_initialize( void )
 {
+       if( !pth_init() ) {
+               return -1;
+       }
+
        detach_attr = pth_attr_new();
        pth_attr_set( detach_attr, PTH_ATTR_JOINABLE, 0 );
-       return pth_init();
+
+       return 0;
 }
 
 int