From c99d8465b7dedb6521fe97a80d4c29950e2a9206 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 31 Mar 2010 06:22:06 +0000 Subject: [PATCH] ITS#6501 zero lockobjs --- servers/slapd/back-bdb/cache.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/servers/slapd/back-bdb/cache.c b/servers/slapd/back-bdb/cache.c index 4e5636f73b..cd403c26c8 100644 --- a/servers/slapd/back-bdb/cache.c +++ b/servers/slapd/back-bdb/cache.c @@ -184,6 +184,7 @@ bdb_cache_entry_db_relock( if ( !lock ) return 0; + DBTzero( &lockobj ); lockobj.data = &ei->bei_id; lockobj.size = sizeof(ei->bei_id) + 1; @@ -225,6 +226,7 @@ bdb_cache_entry_db_lock( struct bdb_info *bdb, DB_TXN *txn, EntryInfo *ei, else db_rw = DB_LOCK_READ; + DBTzero( &lockobj ); lockobj.data = &ei->bei_id; lockobj.size = sizeof(ei->bei_id) + 1; -- 2.39.5