From: Howard Chu Date: Thu, 26 Feb 2009 23:16:41 +0000 (+0000) Subject: Fix prev commit X-Git-Tag: ACLCHECK_0~782 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8e5ebf4dfbbedbda7485ddf0c8a62995f273c934;p=openldap Fix prev commit --- diff --git a/servers/slapd/modify.c b/servers/slapd/modify.c index 25c4480663..2710ffe799 100644 --- a/servers/slapd/modify.c +++ b/servers/slapd/modify.c @@ -808,7 +808,7 @@ slap_sort_vals( } } done: - if ( rc == LDAP_TYPE_OR_VALUE_EXISTS && i >= 0 ) + if ( match == 0 && i >= 0 ) *dup = ix[i]; /* For sorted attributes, put the values in index order */