]> 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 c31d926374b09d9dea095cdb43e01f92cd2d7691..af03dd5e7d801a8e8dde24b400a6e08ef4017716 100644 (file)
@@ -1,4 +1,8 @@
 /*
+ * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.
+ * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
+ */
+/*  Portions
  *  Copyright (c) 1995 Regents of the University of Michigan.
  *  All rights reserved.
  *
@@ -45,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 );
            }