From: Kurt Zeilenga Date: Sat, 29 May 1999 01:26:12 +0000 (+0000) Subject: Fix allocator typo X-Git-Tag: OPENLDAP_REL_ENG_2_BP~488 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6c9aa52b3bcbea66069bce8b8592abf5c31ba1d3;p=openldap Fix allocator typo --- 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 );