]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/ufn.c
Fix ldap_send_initial_request() to open connection if not already
[openldap] / libraries / libldap / ufn.c
index b2c34aee80127d304d114aaf68b071de7054470c..342bd8a1e94e1068b2374780c5cf84e37d8563cf 100644 (file)
@@ -1,4 +1,8 @@
 /*
+ * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.
+ * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
+ */
+/*  Portions
  *  Copyright (c) 1990 Regents of the University of Michigan.
  *  All rights reserved.
  *
@@ -7,10 +11,6 @@
 
 #include "portable.h"
 
-#ifndef lint 
-static char copyright[] = "@(#) Copyright (c) 1993 Regents of the University of Michigan.\nAll rights reserved.\n";
-#endif
-
 #include <stdio.h>
 #include <ac/string.h>
 #include <ctype.h>
@@ -129,7 +129,7 @@ ldap_ufn_search_ctx( LDAP *ld, char **ufncomp, int ncomp, char *prefix,
                                    * 2 )) == NULL ) {
                                        return( ld->ld_errno = LDAP_NO_MEMORY );
                                }
-                               dns[0] = ldap_strdup( prefix );
+                               dns[0] = strdup( prefix );
                                dns[1] = NULL;
                        } else {
                                dns = NULL;
@@ -473,7 +473,7 @@ ldap_ufn_setprefix( LDAP *ld, char *prefix )
        if ( ld->ld_ufnprefix != NULL )
                free( ld->ld_ufnprefix );
 
-       ld->ld_ufnprefix = ldap_strdup( prefix );
+       ld->ld_ufnprefix = strdup( prefix );
 }
 
 int