commit 6abde755e5424a381d7e44c73d8e8268b664b569
parent 6d362a20bab09815541800bdc1c396d6ca8a74a4
Author: Christian Grothoff <christian@grothoff.org>
Date: Sat, 29 Mar 2025 22:29:27 +0100
ah must not go out of scope before use
Diffstat:
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/util/test_crypto.c b/src/util/test_crypto.c
@@ -229,10 +229,10 @@ test_planchets_cs (uint8_t age)
struct TALER_FreshCoin coin;
struct TALER_ExchangeWithdrawValues alg_values;
struct TALER_AgeCommitmentHash *ach = NULL;
+ struct TALER_AgeCommitmentHash ah = {0};
if (0 < age)
{
- struct TALER_AgeCommitmentHash ah = {0};
struct TALER_AgeCommitmentProof acp;
struct GNUNET_HashCode seed;
diff --git a/src/util/test_helper_eddsa.c b/src/util/test_helper_eddsa.c
@@ -349,7 +349,6 @@ par_signing (struct GNUNET_CONFIGURATION_Handle *cfg)
struct GNUNET_TIME_Absolute start;
struct GNUNET_TIME_Relative duration;
pid_t pids[NUM_CORES];
- struct TALER_CRYPTO_ExchangeSignHelper *esh;
memset (keys,
0,
@@ -362,6 +361,7 @@ par_signing (struct GNUNET_CONFIGURATION_Handle *cfg)
GNUNET_assert (-1 != pids[i]);
if (0 == pids[i])
{
+ struct TALER_CRYPTO_ExchangeSignHelper *esh;
int ret;
esh = TALER_CRYPTO_helper_esign_connect (cfg,
@@ -376,7 +376,6 @@ par_signing (struct GNUNET_CONFIGURATION_Handle *cfg)
ret = perf_signing (esh,
"parallel");
TALER_CRYPTO_helper_esign_disconnect (esh);
- esh = NULL;
exit (ret);
}
}
@@ -394,7 +393,7 @@ par_signing (struct GNUNET_CONFIGURATION_Handle *cfg)
"%u (parallel) signature operations took %s (total real time)\n",
(unsigned int) NUM_SIGN_PERFS * NUM_CORES,
GNUNET_STRINGS_relative_time_to_string (duration,
- GNUNET_YES));
+ true));
return 0;
}