From c1019fbfbd09a5677b46fe12e73795c97604c2ff Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 7 Apr 2006 04:17:44 +0000 Subject: [PATCH] More for ITS#4323 fix --- servers/slapd/backglue.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/servers/slapd/backglue.c b/servers/slapd/backglue.c index ce750a009b..f9b3cdce07 100644 --- a/servers/slapd/backglue.c +++ b/servers/slapd/backglue.c @@ -269,12 +269,14 @@ glue_sub_search( Operation *op, SlapReply *rs, BackendDB *b0, /* Process any overlays on the master backend */ if ( op->o_bd == b0 && on->on_next ) { BackendInfo *bi = op->o_bd->bd_info; - int rc; + int rc = SLAP_CB_CONTINUE; for ( on=on->on_next; on; on=on->on_next ) { op->o_bd->bd_info = (BackendInfo *)on; - rc = on->on_bi.bi_op_search( op, rs ); - if ( rc != SLAP_CB_CONTINUE ) - break; + if ( on->on_bi.bi_op_search ) { + rc = on->on_bi.bi_op_search( op, rs ); + if ( rc != SLAP_CB_CONTINUE ) + break; + } } op->o_bd->bd_info = bi; if ( rc != SLAP_CB_CONTINUE ) -- 2.39.5