From f9efac198653634b03677ac0fccf95b376104436 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Tue, 5 Sep 2023 13:55:17 +0200 Subject: cooker: Don't mix up JSON objects when checking temporary storage needs ...including the check on whether the given object is a top-level (corresponding to a full argument) metadata tag. Fixes: d3917582873d ("cooker: simplify tag and add caller metadata") Signed-off-by: Stefano Brivio --- cooker/call.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cooker/call.c b/cooker/call.c index a2dd734..5544ea7 100644 --- a/cooker/call.c +++ b/cooker/call.c @@ -280,7 +280,7 @@ bool arg_needs_temp(struct field *f, int pos, JSON_Value *jvalue, return false; if (json_value_get_type(jvalue) == JSONObject && - (tmp = json_value_get_object(jvalue))) { + (tmp = json_value_get_object(jvalue)) && is_metadata_obj(tmp)) { if (json_object_get_string(tmp, "set")) return true; -- cgit v1.2.3