From 2110880be1ed31306547980c8716899cc432f03d Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 6 May 2006 03:16:45 +0000 Subject: [PATCH] refine previous commit --- servers/slapd/back-meta/search.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/servers/slapd/back-meta/search.c b/servers/slapd/back-meta/search.c index d2231c4e49..839f53a6ee 100644 --- a/servers/slapd/back-meta/search.c +++ b/servers/slapd/back-meta/search.c @@ -470,11 +470,18 @@ meta_back_search( Operation *op, SlapReply *rs ) */ for ( i = 0; i < mi->mi_ntargets; i++ ) { candidates[ i ].sr_msgid = META_MSGID_IGNORE; + + if ( candidates[ i ].sr_tag != META_CANDIDATE ) { + continue; + } + candidates[ i ].sr_matched = NULL; candidates[ i ].sr_text = NULL; candidates[ i ].sr_ref = NULL; candidates[ i ].sr_ctrls = NULL; + } + for ( i = 0; i < mi->mi_ntargets; i++ ) { if ( candidates[ i ].sr_tag != META_CANDIDATE || candidates[ i ].sr_err != LDAP_SUCCESS ) { -- 2.39.5