]> git.sur5r.net Git - openldap/commitdiff
Apply filter to info entry
authorKurt Zeilenga <kurt@openldap.org>
Tue, 16 May 2000 17:00:42 +0000 (17:00 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 16 May 2000 17:00:42 +0000 (17:00 +0000)
servers/slapd/search.c

index ad5975c51bbe5aab82ee858cde37667b64eecd17..c7c2ac6b526cdffb6cc8021491787f5c366a827d 100644 (file)
@@ -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;
                }
        }