From: Howard Chu Date: Wed, 31 Mar 2010 06:22:06 +0000 (+0000) Subject: ITS#6501 zero lockobjs X-Git-Tag: MIGRATION_CVS2GIT~661 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c99d8465b7dedb6521fe97a80d4c29950e2a9206;p=openldap ITS#6501 zero lockobjs --- 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;