[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#5578) sortvals error



I have uploaded a proposed fix for this:

ftp://ftp.openldap.org/incoming/andrew-findlay-sortvals-20080626.patch

My reasoning is that the break statement terminates the loop before
the last value in the list has been compared with the assertion value.
Thus, even if the last value matches, the loop ends with -1 in 'match'.

Andrew
-- 
-----------------------------------------------------------------------
|                 From Andrew Findlay, Skills 1st Ltd                 |
| Consultant in large-scale systems, networks, and directory services |
|     http://www.skills-1st.co.uk/                +44 1628 782565     |
-----------------------------------------------------------------------