]> git.sur5r.net Git - openldap/commitdiff
Dynamically added databases did not have controls init'd
authorHoward Chu <hyc@openldap.org>
Sun, 25 Jan 2009 04:07:58 +0000 (04:07 +0000)
committerHoward Chu <hyc@openldap.org>
Sun, 25 Jan 2009 04:07:58 +0000 (04:07 +0000)
servers/slapd/backend.c

index 2698c295ef98fcdc65171202e1213012f7cfab8d..fd11c69c2356ab3e2055a96927a94704e3ad06d8 100644 (file)
@@ -612,6 +612,9 @@ backend_db_init(
                        nbackends--;
                }
        } else {
+               if ( !bi->bi_nDB ) {
+                       backend_init_controls( bi );
+               }
                bi->bi_nDB++;
        }
        return( be );