diff options
Diffstat (limited to 'src/backend/anastasis-httpd_truth.c')
-rw-r--r-- | src/backend/anastasis-httpd_truth.c | 8 |
1 files changed, 2 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; |