mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-10 06:13:19 -05:00
Fix malloc of referral pointer array.
This commit is contained in:
parent
4710c74605
commit
9369b9daad
1 changed files with 1 additions and 1 deletions
|
|
@ -144,7 +144,7 @@ struct berval **get_entry_referrals(
|
|||
|
||||
if( i < 1 ) return NULL;
|
||||
|
||||
refs = ch_malloc( i + 1 );
|
||||
refs = ch_malloc( (i + 1) * sizeof(struct berval *));
|
||||
|
||||
for( i=0, j=0; attr->a_vals[i] != NULL; i++ ) {
|
||||
unsigned k;
|
||||
|
|
|
|||
Loading…
Reference in a new issue