]> git.sur5r.net Git - openldap/commitdiff
Fix prev commit
authorHoward Chu <hyc@openldap.org>
Thu, 26 Feb 2009 23:16:41 +0000 (23:16 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 26 Feb 2009 23:16:41 +0000 (23:16 +0000)
servers/slapd/modify.c

index 25c448066389cb74b851210238f714b3be1feeb6..2710ffe79969d1491d9aec60b0311fed60495063 100644 (file)
@@ -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 */