mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
Fix mdb_open() off-by-one error in maxdbs check
This commit is contained in:
parent
38fb8e6eb1
commit
a3f33dd20e
1 changed files with 1 additions and 1 deletions
|
|
@ -6548,7 +6548,7 @@ int mdb_open(MDB_txn *txn, const char *name, unsigned int flags, MDB_dbi *dbi)
|
|||
}
|
||||
|
||||
/* If no free slot and max hit, fail */
|
||||
if (!unused && txn->mt_numdbs >= txn->mt_env->me_maxdbs - 1)
|
||||
if (!unused && txn->mt_numdbs >= txn->mt_env->me_maxdbs)
|
||||
return MDB_DBS_FULL;
|
||||
|
||||
/* Find the DB info */
|
||||
|
|
|
|||
Loading…
Reference in a new issue