commit bb6163e9eda287af4947e0fd7e1f66a4e9809814 parent f020eef279b80054aa7cdfedc5482ef3f7e83051 Author: Christian Grothoff <christian@grothoff.org> Date: Sun, 1 Mar 2020 18:01:08 +0100 bugfixes Diffstat:
4 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/src/backend/taler-merchant-httpd_auditors.c b/src/backend/taler-merchant-httpd_auditors.c @@ -110,7 +110,7 @@ TMH_AUDITORS_check_dk (struct TALER_EXCHANGE_Handle *mh, TALER_B2S (&auditors[j].public_key)); } - for (unsigned int k = 0; j<ai->num_denom_keys; k++) + for (unsigned int k = 0; k<ai->num_denom_keys; k++) if (&keys->denom_keys[k] == dk) return GNUNET_OK; } diff --git a/src/backend/taler-merchant-httpd_pay.c b/src/backend/taler-merchant-httpd_pay.c @@ -2271,9 +2271,7 @@ MH_handler_pay (struct TMH_RequestHandler *rh, root, pc); json_decref (root); - if (GNUNET_SYSERR == res) - return MHD_NO; - return MHD_YES; + return res; } diff --git a/src/backend/taler-merchant-httpd_track-transfer.c b/src/backend/taler-merchant-httpd_track-transfer.c @@ -687,7 +687,8 @@ wire_transfer_cb (void *cls, * * details_length is how many (Taler coin) deposits have been * aggregated into _this_ wire transfer. - */for (unsigned int i = 0; i<details_length; i++) + */// + for (unsigned int i = 0; i<details_length; i++) { rctx->current_offset = i; rctx->current_detail = &details[i]; @@ -703,7 +704,7 @@ wire_transfer_cb (void *cls, if (0 > qs) { /* single, read-only SQL statements should never cause - serialization problems */ + serialization problems */ GNUNET_break (GNUNET_DB_STATUS_SOFT_ERROR != qs); /* Always report on hard error as well to enable diagnostics */ GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR == qs); diff --git a/src/lib/testing_api_cmd_check_payment.c b/src/lib/testing_api_cmd_check_payment.c @@ -63,7 +63,7 @@ struct CheckPaymentState /** * State for a /check-payment conclude CMD. - */ + */ struct CheckPaymentConcludeState *cs; /** @@ -264,7 +264,7 @@ check_payment_cb (void *cls, /* synchronous variant */ if (paid != cps->expect_paid) TALER_TESTING_FAIL (cps->is); - if (cps->http_status != http_status) + if (cps->expected_http_status != http_status) TALER_TESTING_FAIL (cps->is); TALER_TESTING_interpreter_next (cps->is); }