From: Howard Chu Date: Sat, 26 Jan 2002 15:06:53 +0000 (+0000) Subject: Fix result X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~15 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=80f404f2475052890aa08ca222139703974ccf2d;p=openldap Fix result --- diff --git a/servers/slapd/back-bdb/compare.c b/servers/slapd/back-bdb/compare.c index d8abfd40f7..fc1a2b37e1 100644 --- a/servers/slapd/back-bdb/compare.c +++ b/servers/slapd/back-bdb/compare.c @@ -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 ) {