mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
Fix allocator typo
This commit is contained in:
parent
1bcec8bf6a
commit
6c9aa52b3b
1 changed files with 2 additions and 2 deletions
|
|
@ -153,13 +153,13 @@ addmodifyop( LDAPMod ***pmodsp, int modop, char *attr, char *value, int vlen )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (( pmods[ i ]->mod_bvalues =
|
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 ) {
|
(j + 2) * sizeof( struct berval * ))) == NULL ) {
|
||||||
perror( "ber_realloc" );
|
perror( "ber_realloc" );
|
||||||
exit( 1 );
|
exit( 1 );
|
||||||
}
|
}
|
||||||
pmods[ i ]->mod_bvalues[ j + 1 ] = NULL;
|
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 ) {
|
== NULL ) {
|
||||||
perror( "malloc" );
|
perror( "malloc" );
|
||||||
exit( 1 );
|
exit( 1 );
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue