diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-02-02 22:21:44 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-02-02 22:21:44 +0100 |
commit | ba3b53cd271f09d25f416c64da30e58dd863eaa7 (patch) | |
tree | 527b1063acb5b591c7924ccac98d0067ff9e0423 /src/auditor | |
parent | a703171f083bab8bb5f316edc47bcffced1f171a (diff) | |
download | exchange-ba3b53cd271f09d25f416c64da30e58dd863eaa7.tar.xz |
-refund deadline should be optional/can be 0
Diffstat (limited to 'src/auditor')
-rw-r--r-- | src/auditor/taler-auditor-httpd_deposit-confirmation.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/auditor/taler-auditor-httpd_deposit-confirmation.c b/src/auditor/taler-auditor-httpd_deposit-confirmation.c index c7bb4f509..a19e7c1ff 100644 --- a/src/auditor/taler-auditor-httpd_deposit-confirmation.c +++ b/src/auditor/taler-auditor-httpd_deposit-confirmation.c @@ -271,7 +271,9 @@ TAH_DEPOSIT_CONFIRMATION_handler (struct TAH_RequestHandler *rh, const char *upload_data, size_t *upload_data_size) { - struct TALER_AUDITORDB_DepositConfirmation dc; + struct TALER_AUDITORDB_DepositConfirmation dc = { + .refund_deadline = GNUNET_TIME_UNIT_ZERO_TS + }; struct TALER_AUDITORDB_ExchangeSigningKey es; struct GNUNET_JSON_Specification spec[] = { GNUNET_JSON_spec_fixed_auto ("h_contract_terms", @@ -282,8 +284,10 @@ TAH_DEPOSIT_CONFIRMATION_handler (struct TAH_RequestHandler *rh, &dc.h_wire), GNUNET_JSON_spec_timestamp ("exchange_timestamp", &dc.exchange_timestamp), - GNUNET_JSON_spec_timestamp ("refund_deadline", - &dc.refund_deadline), + GNUNET_JSON_spec_mark_optional ( + GNUNET_JSON_spec_timestamp ("refund_deadline", + &dc.refund_deadline), + NULL), GNUNET_JSON_spec_timestamp ("wire_deadline", &dc.wire_deadline), TALER_JSON_spec_amount ("amount_without_fee", |