]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/getdxbyname.c
Fix ldap_send_initial_request() to open connection if not already
[openldap] / libraries / libldap / getdxbyname.c
index beab7714870efa41099a5c0e3558063416f63419..af03dd5e7d801a8e8dde24b400a6e08ef4017716 100644 (file)
@@ -49,7 +49,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 ] = ldap_strdup( domain )) == NULL ) {
+               ( dxs[ 0 ] = strdup( domain )) == NULL ) {
            if ( dxs != NULL ) {
                free( dxs );
            }