merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit 45929cfc946a299611a53e9e0b83fdaf0e812e25
parent c2f8c5cb8ed9c8c1073e6c487ac2d63186b6b63f
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon, 29 Dec 2025 05:29:45 +0100

-add missing code

Diffstat:
Msrc/backend/taler-merchant-httpd_private-post-orders.c | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/backend/taler-merchant-httpd_private-post-orders.c b/src/backend/taler-merchant-httpd_private-post-orders.c @@ -1000,6 +1000,12 @@ clean_order (void *cls) GNUNET_array_grow (oc->parse_choices.choices, oc->parse_choices.choices_len, 0); + for (size_t i = 0; i<oc->parse_order.products_len; i++) + { + TALER_MERCHANT_product_free (&oc->parse_order.products[i]); + } + GNUNET_free (oc->parse_order.products); + oc->parse_order.products_len = 0; for (unsigned int i = 0; i<oc->parse_choices.token_families_len; i++) { struct TALER_MERCHANT_ContractTokenFamily *mctf @@ -3874,6 +3880,9 @@ phase_parse_order (struct OrderContext *oc) size_t i; json_t *p; + oc->parse_order.products + = GNUNET_new_array (oc->parse_order.products_len, + struct TALER_MERCHANT_Product); json_array_foreach (products, i, p) { if (GNUNET_OK !=