]> git.sur5r.net Git - openldap/commitdiff
fix hot startup commit (read of uninitialized memory; ITS#5081)
authorPierangelo Masarati <ando@openldap.org>
Mon, 13 Aug 2007 16:27:56 +0000 (16:27 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 13 Aug 2007 16:27:56 +0000 (16:27 +0000)
servers/slapd/overlays/pcache.c

index 215bd00fcf0ae9adda74e07994c8c30ace0648b7..8c6564707acd692707e4e62249c0c83a2cb479e8 100644 (file)
@@ -2539,6 +2539,7 @@ pcache_db_init(
        cm->max_entries = 0;
        cm->cur_entries = 0;
        cm->max_queries = 10000;
+       cm->save_queries = 0;
        cm->response_cb = PCACHE_RESPONSE_CB_TAIL;
        cm->cc_period = 1000;
        cm->cc_paused = 0;