/*
+ * 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.
*
#include "portable.h"
-#ifndef lint
-static char copyright[] = "@(#) Copyright (c) 1995 Regents of the University of Michigan.\nAll rights reserved.\n";
-#endif
-
#include <stdio.h>
#include <stdlib.h>
#ifdef LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
if (( srv = (LDAPServer *)calloc( 1, sizeof( LDAPServer ))) ==
NULL || ( ld->ld_defhost != NULL && ( srv->lsrv_host =
- ldap_strdup( ld->ld_defhost )) == NULL )) {
+ strdup( ld->ld_defhost )) == NULL )) {
ldap_ld_free( ld, 0 );
return( NULL );
}
ld->ld_options.ldo_defhost = NULL;
if ( defhost != NULL ) {
- ld->ld_options.ldo_defhost = ldap_strdup( defhost );
+ ld->ld_options.ldo_defhost = strdup( defhost );
} else {
- ld->ld_options.ldo_defhost = ldap_strdup(
+ ld->ld_options.ldo_defhost = strdup(
openldap_ldap_global_options.ldo_defhost);
}
}
if ( openldap_ldap_global_options.ldo_defbase != NULL ) {
- ld->ld_options.ldo_defbase = ldap_strdup(
+ ld->ld_options.ldo_defbase = strdup(
openldap_ldap_global_options.ldo_defbase);
}