]> 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>
Sun, 25 Oct 2015 09:55:21 +0000 (10:55 +0100)
libraries/liblmdb/mdb.c

index 1cb99e7a9141484e45f97a82e2871c6ea6094bed..410981e989ca1df6f7dd4e1ccb8e20e4c27a00f1 100644 (file)
@@ -9157,7 +9157,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;
 }