From 10c9559dfc46afd5710b2d49fb61fe5ccafc87d0 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Mon, 24 May 2021 17:22:32 +0200 Subject: #1037 Make partition parameter validation permissive Otherwise, ogServer rejects the response if ogClient sends more parameters than required. --- src/json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3-18-g5258