From 5bdbbd68c4e11a322fe5c1b92c5ccc962863dbb1 Mon Sep 17 00:00:00 2001 From: Jonathan Buchanan Date: Wed, 29 Jul 2020 21:38:21 -0400 Subject: revert to use pointers for claim token client lib --- src/testing/testing_api_cmd_post_orders.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/testing/testing_api_cmd_post_orders.c') diff --git a/src/testing/testing_api_cmd_post_orders.c b/src/testing/testing_api_cmd_post_orders.c index 313be782..a91bc21f 100644 --- a/src/testing/testing_api_cmd_post_orders.c +++ b/src/testing/testing_api_cmd_post_orders.c @@ -232,12 +232,13 @@ static void order_cb (void *cls, const struct TALER_MERCHANT_HttpResponse *hr, const char *order_id, - struct TALER_ClaimTokenP claim_token) + const struct TALER_ClaimTokenP *claim_token) { struct OrdersState *ps = cls; ps->po = NULL; - ps->claim_token = claim_token; + if (NULL != claim_token) + ps->claim_token = *claim_token; if (ps->http_status != hr->http_status) { TALER_LOG_ERROR ("Given vs expected: %u(%d) vs %u\n", @@ -287,7 +288,7 @@ order_cb (void *cls, ps->merchant_url, ps->order_id, &ps->nonce, - ps->claim_token, + &ps->claim_token, &orders_claim_cb, ps))) TALER_TESTING_FAIL (ps->is); -- cgit v1.2.3