]> git.sur5r.net Git - openldap/commitdiff
ITS#8220 fix prev commit
authorHoward Chu <hyc@openldap.org>
Fri, 21 Aug 2015 10:39:05 +0000 (11:39 +0100)
committerHoward Chu <hyc@openldap.org>
Fri, 21 Aug 2015 10:40:02 +0000 (11:40 +0100)
Dynamic startup was failing

servers/slapd/overlays/refint.c

index 765054583ac9d92c77581d63236569615c6eb77b..faf3a0fef416790122ac9ac8581f501f8f56af6d 100644 (file)
@@ -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 );