]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/controls.c
Fix ldap_send_initial_request() to open connection if not already
[openldap] / libraries / libldap / controls.c
index e82a6c293fa84bbc7826a2a6f6f122fc6198cebf..7416242ed274ddda193aa2608e6bc570dced263f 100644 (file)
@@ -1,3 +1,7 @@
+/*
+ * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.
+ * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
+ */
 /*
  * LDAP controls
  */
@@ -105,7 +109,7 @@ LDAPControl *ldap_control_dup( LDAPControl *c )
        }
 
        if( c->ldctl_oid != NULL ) {
-               new->ldctl_oid = ldap_strdup( c->ldctl_oid );
+               new->ldctl_oid = strdup( c->ldctl_oid );
 
                if(new->ldctl_oid == NULL) {
                        free( new );