]> git.sur5r.net Git - openldap/commitdiff
Fix allocator typo
authorKurt Zeilenga <kurt@openldap.org>
Sat, 29 May 1999 01:26:12 +0000 (01:26 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sat, 29 May 1999 01:26:12 +0000 (01:26 +0000)
tests/progs/slapd-addel.c

index d4a98e9a72e984da7bd617759e62e12900804d77..37175de4e3ff9e0a07e9c156aa335f242a64fba6 100644 (file)
@@ -153,13 +153,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 );