]> git.sur5r.net Git - openldap/commitdiff
mdb_env_get_flags(): Hide internal flags
authorHallvard Furuseth <hallvard@openldap.org>
Sat, 4 Jul 2015 11:42:41 +0000 (13:42 +0200)
committerHallvard Furuseth <hallvard@openldap.org>
Sat, 4 Jul 2015 11:42:41 +0000 (13:42 +0200)
libraries/liblmdb/mdb.c

index ae82bb2fa4602ddedc66a2d599867c8e60d2072b..82701000a11e1764e4e06579ed435df1142492b2 100644 (file)
@@ -9182,7 +9182,7 @@ mdb_env_get_flags(MDB_env *env, unsigned int *arg)
        if (!env || !arg)
                return EINVAL;
 
-       *arg = env->me_flags;
+       *arg = env->me_flags & (CHANGEABLE|CHANGELESS);
        return MDB_SUCCESS;
 }