From 6c9aa52b3bcbea66069bce8b8592abf5c31ba1d3 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Sat, 29 May 1999 01:26:12 +0000 Subject: [PATCH] Fix allocator typo --- tests/progs/slapd-addel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/progs/slapd-addel.c b/tests/progs/slapd-addel.c index d4a98e9a72..37175de4e3 100644 --- a/tests/progs/slapd-addel.c +++ b/tests/progs/slapd-addel.c @@ -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 ); -- 2.39.5