Skip to content
Snippets Groups Projects
Commit 9369b9da authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Fix malloc of referral pointer array.

parent 4710c746
Branches
Tags
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment