summaryrefslogtreecommitdiff
path: root/src/exchange
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-02-11 17:44:18 +0100
committerChristian Grothoff <christian@grothoff.org>2022-02-11 17:44:18 +0100
commit9f77398fe25bb041e58ddd4c994062493275e615 (patch)
treec38d39b6da9d928307db32ec11ea7e2ee405f752 /src/exchange
parent0eb5b08d50df7ea31d6cf25c4fa41c8686c06e77 (diff)
downloadexchange-9f77398fe25bb041e58ddd4c994062493275e615.tar.gz
exchange-9f77398fe25bb041e58ddd4c994062493275e615.tar.bz2
exchange-9f77398fe25bb041e58ddd4c994062493275e615.zip
-fix use of uninit memory in test
Diffstat (limited to 'src/exchange')
-rw-r--r--src/exchange/taler-exchange-httpd_keys.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/exchange/taler-exchange-httpd_keys.c b/src/exchange/taler-exchange-httpd_keys.c
index 81ebf291b..bf55b1029 100644
--- a/src/exchange/taler-exchange-httpd_keys.c
+++ b/src/exchange/taler-exchange-httpd_keys.c
@@ -2473,7 +2473,6 @@ TEH_keys_denomination_cs_r_pub (const struct
{
struct TEH_KeyStateHandle *ksh;
struct HelperDenomination *hd;
- enum TALER_ErrorCode r_derive_ec;
ksh = TEH_keys_get_state ();
if (NULL == ksh)
@@ -2491,11 +2490,10 @@ TEH_keys_denomination_cs_r_pub (const struct
return TALER_EC_GENERIC_INTERNAL_INVARIANT_FAILURE;
}
- *r_pub = TALER_CRYPTO_helper_cs_r_derive (ksh->helpers->csdh,
- &hd->h_details.h_cs,
- nonce,
- &r_derive_ec);
- return r_derive_ec;
+ return TALER_CRYPTO_helper_cs_r_derive (ksh->helpers->csdh,
+ &hd->h_details.h_cs,
+ nonce,
+ r_pub);
}