]> git.sur5r.net Git - openldap/commitdiff
ITS#6501 zero lockobjs
authorHoward Chu <hyc@openldap.org>
Wed, 31 Mar 2010 06:22:06 +0000 (06:22 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 31 Mar 2010 06:22:06 +0000 (06:22 +0000)
servers/slapd/back-bdb/cache.c

index 4e5636f73b57aba4a7954586316eef50d43f001d..cd403c26c804735de8f73a51ca46a3b944d5252f 100644 (file)
@@ -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;