]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/controls.c
Updates for MSVC 5.0. Fix libraries names to be ol{ber,dap,..}32.lib.
[openldap] / libraries / libldap / controls.c
index e82a6c293fa84bbc7826a2a6f6f122fc6198cebf..bac038e3048c8e6873f3e8356b695dd280d0b02e 100644 (file)
@@ -1,9 +1,15 @@
+/*
+ * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.
+ * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
+ */
 /*
  * LDAP controls
  */
 
 #include "portable.h"
 
+#include <stdlib.h>
+
 #include <ac/time.h>
 #include <ac/string.h>
 
@@ -105,7 +111,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 );