aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-09-11 23:11:48 +0200
committerChristian Grothoff <christian@grothoff.org>2023-09-11 23:11:48 +0200
commit5b78951826e1f6984281f50cb43a6cf2c3f2e33c (patch)
treeb851bbf5833ad06ab8f9ebc3f821789e6ae198be
parent7890c46c9d0b47589ec3144a154cc6e2b27249dc (diff)
handle NULL entry correctly
-rw-r--r--src/exchangedb/pg_get_coin_transactions.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/exchangedb/pg_get_coin_transactions.c b/src/exchangedb/pg_get_coin_transactions.c
index e05fbbd95..5deb3fdcb 100644
--- a/src/exchangedb/pg_get_coin_transactions.c
+++ b/src/exchangedb/pg_get_coin_transactions.c
@@ -189,8 +189,10 @@ add_coin_purse_deposit (void *cls,
NULL),
GNUNET_PQ_result_spec_auto_from_type ("coin_sig",
&deposit->coin_sig),
- GNUNET_PQ_result_spec_auto_from_type ("age_commitment_hash",
- &deposit->h_age_commitment),
+ GNUNET_PQ_result_spec_allow_null (
+ GNUNET_PQ_result_spec_auto_from_type ("age_commitment_hash",
+ &deposit->h_age_commitment),
+ &deposit->no_age_commitment),
GNUNET_PQ_result_spec_allow_null (
GNUNET_PQ_result_spec_bool ("refunded",
&deposit->refunded),