summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-04-21 14:53:05 +0200
committerChristian Grothoff <christian@grothoff.org>2020-04-21 14:53:05 +0200
commitee0d0dd33f391c5b9b03e781e42e085a5ed3c126 (patch)
tree5e0e73d933a0b03efda6a806397c037cbd0e1966 /src
parentc167fd8f8fc5536b70a3d61c36d14e205e04890b (diff)
downloadexchange-ee0d0dd33f391c5b9b03e781e42e085a5ed3c126.tar.gz
exchange-ee0d0dd33f391c5b9b03e781e42e085a5ed3c126.tar.bz2
exchange-ee0d0dd33f391c5b9b03e781e42e085a5ed3c126.zip
fix #6193
Diffstat (limited to 'src')
-rw-r--r--src/lib/exchange_api_refresh_common.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/lib/exchange_api_refresh_common.c b/src/lib/exchange_api_refresh_common.c
index b6656e25..c415e784 100644
--- a/src/lib/exchange_api_refresh_common.c
+++ b/src/lib/exchange_api_refresh_common.c
@@ -62,13 +62,9 @@ TALER_EXCHANGE_free_melt_data_ (struct MeltData *md)
for (unsigned int i = 0; i<TALER_CNC_KAPPA; i++)
GNUNET_free_non_null (md->fresh_coins[i]);
- /* Finally, clean up a bit...
- (NOTE: compilers might optimize this away, so this is
- not providing any strong assurances that the key material
- is purged.) */
- memset (md,
- 0,
- sizeof (struct MeltData));
+ /* Finally, clean up a bit... */
+ GNUNET_CRYPTO_zero_keys (md,
+ sizeof (struct MeltData));
}