]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/getdxbyname.c
Remove LDAP_PORT dependencies so that ldap.conf defaults take over.
[openldap] / libraries / libldap / getdxbyname.c
index c9ec19f9acf4d59d2519a1d0016ba9a03d4a4088..c31d926374b09d9dea095cdb43e01f92cd2d7691 100644 (file)
@@ -45,7 +45,7 @@ ldap_getdxbyname( char *domain )
         * punt:  return list conisting of the original domain name only
         */
        if (( dxs = (char **)malloc( 2 * sizeof( char * ))) == NULL ||
-               ( dxs[ 0 ] = strdup( domain )) == NULL ) {
+               ( dxs[ 0 ] = ldap_strdup( domain )) == NULL ) {
            if ( dxs != NULL ) {
                free( dxs );
            }