From: Howard Chu Date: Fri, 7 Apr 2006 04:17:44 +0000 (+0000) Subject: More for ITS#4323 fix X-Git-Tag: OPENLDAP_REL_ENG_2_4_0ALPHA~13 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c1019fbfbd09a5677b46fe12e73795c97604c2ff;p=openldap More for ITS#4323 fix --- 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 )