diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2023-09-05 13:55:17 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2023-09-05 13:55:17 +0200 |
commit | f9efac198653634b03677ac0fccf95b376104436 (patch) | |
tree | 00ffb77e3e4d1f669c189bee29ddeb0ea9fdb4d5 | |
parent | bcbe728187c7239d43d0fe32eaa0f07d09f7e765 (diff) | |
download | seitan-f9efac198653634b03677ac0fccf95b376104436.tar seitan-f9efac198653634b03677ac0fccf95b376104436.tar.gz seitan-f9efac198653634b03677ac0fccf95b376104436.tar.bz2 seitan-f9efac198653634b03677ac0fccf95b376104436.tar.lz seitan-f9efac198653634b03677ac0fccf95b376104436.tar.xz seitan-f9efac198653634b03677ac0fccf95b376104436.tar.zst seitan-f9efac198653634b03677ac0fccf95b376104436.zip |
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 <sbrivio@redhat.com>
-rw-r--r-- | cooker/call.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |