]> 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 c00836e35e600c3b439c122fa816bb16691e0e1f..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 );
@@ -140,3 +144,9 @@ LDAPControl *ldap_control_dup( LDAPControl *c )
        new->ldctl_iscritical = c->ldctl_iscritical;
        return new;
 }
+
+/* get the controls from the BerElement */
+int ldap_get_ber_controls( BerElement *be, LDAPControl ***cp)
+{
+       return LDAP_NOT_SUPPORTED;
+}