Skip to content
Snippets Groups Projects
Commit 5255c205 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

import fix to ITS#5136

parent f7763506
No related branches found
No related tags found
No related merge requests found
......@@ -3,5 +3,6 @@ OpenLDAP 2.4 Change Log
OpenLDAP 2.4.6 Engineering
Fixed slapd ACL sets memory handling (ITS#4873)
Added slapd ACL sets DN ancestors operator (ITS#4860)
Fixed slapd ordered values add normalization issue (ITS#5136)
Fixed slapd-ldap SASL idassert w/o autchId
Fixed slapo-rwm modlist handling (ITS#5124)
......@@ -718,7 +718,21 @@ ordered_value_add(
}
new = ch_malloc( (anum+vnum+1) * sizeof(struct berval));
if ( a->a_nvals && a->a_nvals != a->a_vals ) {
/* sanity check: if normalized modifications come in, either
* no values are present or normalized existing values differ
* from non-normalized; if no normalized modifications come in,
* either no values are present or normalized existing values
* don't differ from non-normalized */
if ( nvals != NULL ) {
assert( nvals != vals );
assert( a->a_nvals == NULL || a->a_nvals != a->a_vals );
} else {
assert( a->a_nvals == NULL || a->a_nvals == a->a_vals );
}
if ( ( a->a_nvals && a->a_nvals != a->a_vals ) || nvals != NULL ) {
nnew = ch_malloc( (anum+vnum+1) * sizeof(struct berval));
/* Shouldn't happen... */
if ( !nvals ) nvals = vals;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment