mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
fix ITS#5959 fix
This commit is contained in:
parent
7549abb063
commit
7fe91339df
@ -766,7 +766,9 @@ ldap_build_entry(
|
||||
}
|
||||
attr->a_vals[i] = attr->a_vals[last];
|
||||
BER_BVZERO( &attr->a_vals[last] );
|
||||
i--;
|
||||
}
|
||||
|
||||
} else if ( pretty ) {
|
||||
LBER_FREE( attr->a_vals[i].bv_val );
|
||||
attr->a_vals[i] = pval;
|
||||
@ -801,6 +803,7 @@ ldap_build_entry(
|
||||
}
|
||||
attr->a_vals[i] = attr->a_vals[last];
|
||||
BER_BVZERO( &attr->a_vals[last] );
|
||||
i--;
|
||||
}
|
||||
}
|
||||
BER_BVZERO( &attr->a_nvals[i] );
|
||||
|
Loading…
Reference in New Issue
Block a user