From: Kurt Zeilenga Date: Wed, 3 May 2000 10:48:41 +0000 (+0000) Subject: s/strdup/ldap_strdup/ X-Git-Tag: OPENLDAP_REL_ENG_1_2_11~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0bbeef6032d796da4b0e631087fd8a681408533b;p=thirdparty%2Fopenldap.git s/strdup/ldap_strdup/ --- diff --git a/CHANGES b/CHANGES index c029af0220..ea402faedb 100644 --- a/CHANGES +++ b/CHANGES @@ -6,6 +6,7 @@ Changes included in OpenLDAP 1.2.11 Release Engineering Fix error in slurpd's filecheck function Fix slurpd to properly restart in oneshot mode, and to report a non-zero number of items to process with only one replica. + Fix strdup use in libldap/request.c Changes included in OpenLDAP 1.2.10 CVS Tag: OPENLDAP_REL_ENG_1_2_10 diff --git a/libraries/libldap/request.c b/libraries/libldap/request.c index 930ec49974..763e396d34 100644 --- a/libraries/libldap/request.c +++ b/libraries/libldap/request.c @@ -86,7 +86,7 @@ ldap_delayed_open( LDAP *ld ) #if defined( LDAP_REFERRALS ) || defined( LDAP_DNS ) 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 )) { if (srv != NULL) free( srv ); ld->ld_errno = LDAP_NO_MEMORY;