From 75841ac6c73b7df3fd0aca933751e0714ce49591 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Tue, 16 May 2000 17:00:42 +0000 Subject: [PATCH] Apply filter to info entry --- servers/slapd/search.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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; } } -- 2.39.5