]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/open.c
Add libtool support based upon patch by Bart Hartgers <Hartgers@kfm1.phys.tue.nl>
[openldap] / libraries / libldap / open.c
index ff88c634638995dade20d91634f61a77315dcaaf..2aa8eafcb259dc01894da1ca5b3b0b1481af666d 100644 (file)
@@ -59,7 +59,7 @@ ldap_open( char *host, int port )
 #ifdef LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
        if (( srv = (LDAPServer *)calloc( 1, sizeof( LDAPServer ))) ==
            NULL || ( ld->ld_defhost != NULL && ( srv->lsrv_host =
-           strdup( ld->ld_defhost )) == NULL )) {
+           ldap_strdup( ld->ld_defhost )) == NULL )) {
                ldap_ld_free( ld, 0 );
                return( NULL );
        }
@@ -158,9 +158,9 @@ ldap_init( char *defhost, int defport )
        ld->ld_options.ldo_defhost = NULL;
 
        if ( defhost != NULL ) {
-               ld->ld_options.ldo_defhost = strdup( defhost );
+               ld->ld_options.ldo_defhost = ldap_strdup( defhost );
        } else {
-               ld->ld_options.ldo_defhost = strdup(
+               ld->ld_options.ldo_defhost = ldap_strdup(
                        openldap_ldap_global_options.ldo_defhost);
        }