Commit 95d4d41e authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

ITS#5578

parent 2eb9d166
......@@ -12,6 +12,7 @@ OpenLDAP 2.4.11 Engineering
Fixed slapd crash with no listeners (ITS#5563)
Fixed slapd equality rules for olcRootDN/olcSchemaDN (ITS#5540)
Fixed slapd sets memory leak (ITS#5557)
Fixed slapd sortvals binary search (ITS#5578)
Fixed slapd/slapo-syncprov syncrepl contextCSN updates as internal ops (ITS#5596)
Fixed slapd-meta link to slapd-ldap (ITS#5355)
Fixed slapd-sock, back-shell buffer count (ITS#5558)
......
......@@ -324,17 +324,16 @@ attr_valfind(
while ( 0 < n ) {
unsigned pivot = n >> 1;
i = base + pivot;
if ( i >= a->a_numvals ) {
i = a->a_numvals - 1;
break;
}
rc = value_match( &match, a->a_desc, mr, flags,
&a->a_nvals[i], cval, &text );
if ( rc == LDAP_SUCCESS && match == 0 )
break;
n = pivot;
if ( match < 0 )
if ( match < 0 ) {
base = i+1;
n -= pivot+1;
} else {
n = pivot;
}
}
if ( match < 0 )
i++;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment