summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/json.c b/src/json.c
index b29a2e6..7a849cb 100644
--- a/src/json.c
+++ b/src/json.c
@@ -132,7 +132,7 @@ int og_json_parse_partition(json_t *element, struct og_partition *part,
return err;
}
- if (flags != required_flags)
+ if ((flags & required_flags) != required_flags)
return -1;
return err;