From: Hallvard Furuseth Date: Wed, 20 Feb 2013 08:08:41 +0000 (+0100) Subject: Tweak prev commit: Restore if-test as an assert X-Git-Tag: OPENLDAP_REL_ENG_2_4_34~3^2~2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fbd76c44e4d67ed0ffce7a8387fbf505775356d7;p=openldap Tweak prev commit: Restore if-test as an assert --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index d2cbba2648..a6193c704d 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -1631,6 +1631,7 @@ finish: return 0; } } + assert(mc->mc_txn->mt_u.dirty_list[0].mid < MDB_IDL_UM_MAX); /* No - copy it */ np = mdb_page_malloc(mc); if (!np)