]> git.sur5r.net Git - openldap/blobdiff - tests/progs/slapd-addel.c
Add cn=monitor, cn=config, cn=schema to namingContexts.
[openldap] / tests / progs / slapd-addel.c
index d4a98e9a72e984da7bd617759e62e12900804d77..7f4a403c7ee7b300ae4dfc89ac67946fa6cc91ed 100644 (file)
@@ -1,7 +1,8 @@
 #include "portable.h"
 
 #include <stdio.h>
-#include <stdlib.h>
+
+#include <ac/stdlib.h>
 
 #include <ac/ctype.h>
 #include <ac/socket.h>
@@ -153,13 +154,13 @@ addmodifyop( LDAPMod ***pmodsp, int modop, char *attr, char *value, int vlen )
                }
                }
                if (( pmods[ i ]->mod_bvalues =
-                       (struct berval **)ber_realloc( pmods[ i ]->mod_bvalues,
+                       (struct berval **)ber_memrealloc( pmods[ i ]->mod_bvalues,
                        (j + 2) * sizeof( struct berval * ))) == NULL ) {
                        perror( "ber_realloc" );
                        exit( 1 );
                }
                pmods[ i ]->mod_bvalues[ j + 1 ] = NULL;
-               if (( bvp = (struct berval *)ber_malloc( sizeof( struct berval )))
+               if (( bvp = (struct berval *)ber_memalloc( sizeof( struct berval )))
                        == NULL ) {
                        perror( "malloc" );
                        exit( 1 );