commit bf0eeb5845803f9c47f03d6a741b22ee0b6f742b parent 1dc9af59741fae23d19bd16516c3c06a2fe793e2 Author: Christian Grothoff <christian@grothoff.org> Date: Fri, 9 Oct 2026 23:00:53 +0200 enforce location is an object Diffstat:
| M | src/backend/taler-merchant-httpd_helper.c | | | 6 | ++++++ |
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/backend/taler-merchant-httpd_helper.c b/src/backend/taler-merchant-httpd_helper.c @@ -353,6 +353,12 @@ TMH_location_object_valid (const json_t *location) const char *ename; unsigned int eline; + if (! json_is_object (location)) + { + GNUNET_log (GNUNET_ERROR_TYPE_WARNING, + "Location is not a JSON object\n"); + return false; + } if (GNUNET_OK != GNUNET_JSON_parse (location, spec,