From 561ab80de066f12bf24d37837c66df4f5c8318af Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Wed, 22 Jan 2003 14:57:35 +0000 Subject: [PATCH] Check for modified filter after calling search rewriter plugin --- servers/slapd/search.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/servers/slapd/search.c b/servers/slapd/search.c index 404c3767a0..06d6167965 100644 --- a/servers/slapd/search.c +++ b/servers/slapd/search.c @@ -371,7 +371,10 @@ do_search( return rc; } - doPluginFNs( be, SLAPI_PLUGIN_COMPUTE_SEARCH_REWRITER_FN, pb ); + if ( doPluginFNs( be, SLAPI_PLUGIN_COMPUTE_SEARCH_REWRITER_FN, pb ) == 0 ) { + slapi_pblock_get( pb, SLAPI_SEARCH_FILTER, (void *)&filter); + slapi_pblock_get( pb, SLAPI_SEARCH_STRFILTER, (void *)&fstr.bv_val ); + } #endif /* defined( LDAP_SLAPI ) */ /* actually do the search and send the result(s) */ -- 2.39.5