commit c1efc9812ba1593d93a71126923e1e2230f657fa
parent 46ed6a7172a363ea50aa1512a257165c9dd37e67
Author: Florian Dold <florian@dold.me>
Date: Mon, 25 Apr 2022 23:57:38 +0200
fix minimum age parsing (endianess!)
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/backend/taler-merchant-httpd_post-orders-ID-pay.c b/src/backend/taler-merchant-httpd_post-orders-ID-pay.c
@@ -2294,8 +2294,8 @@ parse_pay (struct MHD_Connection *connection,
GNUNET_JSON_spec_fixed_auto ("h_wire",
&pc->h_wire),
GNUNET_JSON_spec_mark_optional (
- GNUNET_JSON_spec_fixed_auto ("minimum_age",
- &pc->minimum_age),
+ GNUNET_JSON_spec_uint32 ("minimum_age",
+ &pc->minimum_age),
NULL),
GNUNET_JSON_spec_end ()
};