]> git.sur5r.net Git - openldap/commitdiff
ITS#7919 fix cache DB config
authorHoward Chu <hyc@openldap.org>
Thu, 14 Aug 2014 02:22:17 +0000 (19:22 -0700)
committerHoward Chu <hyc@openldap.org>
Thu, 14 Aug 2014 02:22:17 +0000 (19:22 -0700)
Don't accept config directives for cache DB until the cache backend type
has been set.

servers/slapd/overlays/pcache.c

index 84c9d237a94125de0b624d70fa4b63509e6ff5da..7956a67442f252d4f53ca5b8c0fd59440b27c0e9 100644 (file)
@@ -4494,6 +4494,7 @@ pcache_db_init(
        qm = (query_manager*)ch_malloc(sizeof(query_manager));
 
        cm->db = *be;
+       cm->db.bd_info = NULL;
        SLAP_DBFLAGS(&cm->db) |= SLAP_DBFLAG_NO_SCHEMA_CHECK;
        cm->db.be_private = NULL;
        cm->db.bd_self = &cm->db;