From: Kurt Zeilenga Date: Tue, 16 May 2000 17:00:42 +0000 (+0000) Subject: Apply filter to info entry X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2948 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=75841ac6c73b7df3fd0aca933751e0714ce49591;p=openldap Apply filter to info entry --- diff --git a/servers/slapd/search.c b/servers/slapd/search.c index ad5975c51b..c7c2ac6b52 100644 --- a/servers/slapd/search.c +++ b/servers/slapd/search.c @@ -190,11 +190,18 @@ do_search( goto return_results; } else if ( entry != NULL ) { - send_search_entry( &backends[0], conn, op, - entry, attrs, attrsonly, NULL ); + rc = test_filter( NULL, conn, op, + entry, filter ); + + if( rc == LDAP_COMPARE_TRUE ) { + send_search_entry( &backends[0], conn, op, + entry, attrs, attrsonly, NULL ); + } + entry_free( entry ); + send_ldap_result( conn, op, LDAP_SUCCESS, NULL, NULL, NULL, NULL ); - entry_free( entry ); + goto return_results; } }