From 8e5ebf4dfbbedbda7485ddf0c8a62995f273c934 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 26 Feb 2009 23:16:41 +0000 Subject: [PATCH] Fix prev commit --- servers/slapd/modify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.39.5