]> git.sur5r.net Git - openldap/commitdiff
Fix result
authorHoward Chu <hyc@openldap.org>
Sat, 26 Jan 2002 15:06:53 +0000 (15:06 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 26 Jan 2002 15:06:53 +0000 (15:06 +0000)
servers/slapd/back-bdb/compare.c

index d8abfd40f75f71b65a65400df76f3d6fcc8a371f..fc1a2b37e1f2b2c3ad3a975e29b15276c78196e1 100644 (file)
@@ -107,15 +107,14 @@ bdb_compare(
 
        }
 
-       if( rc != LDAP_NO_SUCH_ATTRIBUTE ) {
-               rc = LDAP_SUCCESS;
-       }
-
-
 return_results:
-       send_ldap_result( conn, op, LDAP_SUCCESS,
+       send_ldap_result( conn, op, rc,
                NULL, text, NULL, NULL );
 
+       if( rc == LDAP_COMPARE_FALSE || rc == LDAP_COMPARE_TRUE ) {
+               rc = LDAP_SUCCESS;
+       }
+
 done:
        /* free entry */
        if( e != NULL ) {