From: Pierangelo Masarati Date: Sat, 6 May 2006 03:16:45 +0000 (+0000) Subject: refine previous commit X-Git-Tag: OPENLDAP_REL_ENG_2_4_1ALPHA~2^2~78 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2110880be1ed31306547980c8716899cc432f03d;p=openldap refine previous commit --- 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 ) {