aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-09-01 11:09:35 +0200
committerChristian Grothoff <christian@grothoff.org>2021-09-01 11:09:35 +0200
commit22798d2ec67b5078de805ac5a539a085c14ea693 (patch)
treede61bdd21496950b42dcbd7e789aeddef1f3bc8c
parente586a72a81ff00805df452014a36700998b5869d (diff)
downloadanastasis-22798d2ec67b5078de805ac5a539a085c14ea693.tar.gz
anastasis-22798d2ec67b5078de805ac5a539a085c14ea693.zip
fix cmp
-rw-r--r--src/backend/anastasis-httpd_truth.c8
-rw-r--r--src/restclient/anastasis_api_keyshare_lookup.c6
2 files changed, 8 insertions, 6 deletions
diff --git a/src/backend/anastasis-httpd_truth.c b/src/backend/anastasis-httpd_truth.c
index 19f8b6b..50cd75b 100644
--- a/src/backend/anastasis-httpd_truth.c
+++ b/src/backend/anastasis-httpd_truth.c
@@ -1211,12 +1211,8 @@ AH_handler_truth_get (
1211 if ( (is_question) || 1211 if ( (is_question) ||
1212 (! gc->authorization->payment_plugin_managed) ) 1212 (! gc->authorization->payment_plugin_managed) )
1213 { 1213 {
1214 struct TALER_Amount zero_amount; 1214 if ( (0 == gc->challenge_cost.value) &&
1215 1215 (0 == gc->challenge_cost.fraction) )
1216 TALER_amount_set_zero (AH_currency,
1217 &zero_amount);
1218 if (0 != TALER_amount_cmp (&gc->challenge_cost,
1219 &zero_amount))
1220 { 1216 {
1221 /* Check database to see if the transaction is paid for */ 1217 /* Check database to see if the transaction is paid for */
1222 enum GNUNET_DB_QueryStatus qs; 1218 enum GNUNET_DB_QueryStatus qs;
diff --git a/src/restclient/anastasis_api_keyshare_lookup.c b/src/restclient/anastasis_api_keyshare_lookup.c
index 5eeeee6..50e0d67 100644
--- a/src/restclient/anastasis_api_keyshare_lookup.c
+++ b/src/restclient/anastasis_api_keyshare_lookup.c
@@ -267,6 +267,12 @@ handle_keyshare_lookup_finished (void *cls,
267 data_size); 267 data_size);
268 kdd.details.server_failure.http_status = response_code; 268 kdd.details.server_failure.http_status = response_code;
269 break; 269 break;
270 case MHD_HTTP_BAD_GATEWAY:
271 kdd.status = ANASTASIS_KSD_SERVER_ERROR;
272 kdd.details.server_failure.ec = TALER_JSON_get_error_code2 (data,
273 data_size);
274 kdd.details.server_failure.http_status = response_code;
275 break;
270 default: 276 default:
271 /* unexpected response code */ 277 /* unexpected response code */
272 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 278 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,