mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
ITS#7661 mdb_dbi_flags(): Allow main DBI
This commit is contained in:
parent
335f0e4cee
commit
92eb220184
@ -7903,7 +7903,7 @@ void mdb_dbi_close(MDB_env *env, MDB_dbi dbi)
|
||||
int mdb_dbi_flags(MDB_env *env, MDB_dbi dbi, unsigned int *flags)
|
||||
{
|
||||
/* We could return the flags for the FREE_DBI too but what's the point? */
|
||||
if (dbi <= MAIN_DBI || dbi >= env->me_numdbs)
|
||||
if (dbi < MAIN_DBI || dbi >= env->me_numdbs)
|
||||
return EINVAL;
|
||||
*flags = env->me_dbflags[dbi];
|
||||
return MDB_SUCCESS;
|
||||
|
Loading…
Reference in New Issue
Block a user