[Date Prev][Date Next] [Chronological] [Thread] [Top]

Core dump in mutex locking of gethostbyname (ITS#2019)



Full_Name: Morten Hermanrud
Version: 2.0.25
OS: AIX 4.3.3
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (217.70.229.51)


Mutex lock core dumped in ldap_pvt_gethostbyname_a
(libraries/libldap_r/util-int.c) due to uninitialized mutex.

Solution:

Make shure ldap_int_utils_init is called before ldap_pvt_get_fqdn in
ldap_int_initialize (libraries/libldap_r/init.c):

        ldap_int_utils_init();

#if defined(LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND) \
        || defined(HAVE_TLS) || defined(HAVE_CYRUS_SASL)
        ldap_int_hostname = ldap_pvt_get_fqdn( ldap_int_hostname );
#endif