From 79157d314f930760b01cd401b0381d3b0dbb3d34 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 21 Aug 2015 11:39:05 +0100 Subject: [PATCH] ITS#8220 fix prev commit Dynamic startup was failing --- servers/slapd/overlays/refint.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/servers/slapd/overlays/refint.c b/servers/slapd/overlays/refint.c index 765054583a..faf3a0fef4 100644 --- a/servers/slapd/overlays/refint.c +++ b/servers/slapd/overlays/refint.c @@ -375,7 +375,12 @@ refint_open( BackendDB *db = select_backend(&id->dn, 1); if ( db ) { - if ( !db->be_search || !db->be_modify ) { + BackendInfo *bi; + if ( db == be ) + bi = on->on_info->oi_orig; + else + bi = db->bd_info; + if ( !bi->bi_op_search || !bi->bi_op_modify ) { Debug( LDAP_DEBUG_CONFIG, "refint_response: backend missing search and/or modify\n", 0, 0, 0 ); -- 2.39.5