]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/controls.c
Fix typo in previous commit.
[openldap] / libraries / libldap / controls.c
index 134e5c963c9a0fa1cc918a59d8a5b13b3d394ffb..bac038e3048c8e6873f3e8356b695dd280d0b02e 100644 (file)
@@ -8,6 +8,8 @@
 
 #include "portable.h"
 
+#include <stdlib.h>
+
 #include <ac/time.h>
 #include <ac/string.h>
 
@@ -109,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 );