summaryrefslogtreecommitdiffstats
path: root/src/json.c
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2021-05-24 17:22:32 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2021-05-26 17:19:30 +0200
commit10c9559dfc46afd5710b2d49fb61fe5ccafc87d0 (patch)
tree5492051d0cf084fda3079cfebc421ac47add3028 /src/json.c
parentbc9424724d5e8a2b3f252005a99fe9adf003cfcd (diff)
#1037 Make partition parameter validation permissive
Otherwise, ogServer rejects the response if ogClient sends more parameters than required.
Diffstat (limited to 'src/json.c')
-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;