donau

Donation authority for GNU Taler (experimental)
Log | Files | Refs | Submodules | README | LICENSE

commit 9e9c7832ea881fbb943087eba71e2f49d673dad3
parent 4fe6884ddfcf7e3135378517d031b578c3084d73
Author: Christian Grothoff <grothoff@gnunet.org>
Date:   Sat, 18 Jul 2026 00:30:43 +0200

handle inner NULLs, too

Diffstat:
Msrc/json/donau_json.c | 9++++++---
Msrc/json/json_pack.c | 3++-
2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/src/json/donau_json.c b/src/json/donau_json.c @@ -451,7 +451,8 @@ DONAU_JSON_pack_donation_unit_sig ( .field_name = name, }; - if (NULL == sig) + if ( (NULL == sig) || + (NULL == sig->unblinded_sig) ) return ps; bs = sig->unblinded_sig; switch (bs->cipher) @@ -490,7 +491,8 @@ DONAU_JSON_pack_blinded_donation_unit_sig ( .field_name = name, }; - if (NULL == sig) + if ( (NULL == sig) || + (NULL == sig->blinded_sig) ) return ps; bs = sig->blinded_sig; switch (bs->cipher) @@ -529,7 +531,8 @@ DONAU_JSON_pack_blinded_donation_identifier ( .field_name = name, }; - if (NULL == blinded_udi) + if ( (NULL == blinded_udi) || + (NULL == blinded_udi->blinded_message) ) return ps; bm = blinded_udi->blinded_message; switch (bm->cipher) diff --git a/src/json/json_pack.c b/src/json/json_pack.c @@ -36,7 +36,8 @@ DONAU_JSON_pack_donation_unit_pub ( .field_name = name, }; - if (NULL == pk) + if ( (NULL == pk) || + (NULL == pk->bsign_pub_key) ) return ps; bsp = pk->bsign_pub_key; switch (bsp->cipher)