[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: -logic cleanup
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: -logic cleanup |
Date: |
Wed, 24 Nov 2021 16:04:29 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new c7dc62b4 -logic cleanup
c7dc62b4 is described below
commit c7dc62b42ea3f001d2d54eac9a523b77d2188d6a
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Wed Nov 24 16:04:26 2021 +0100
-logic cleanup
---
src/exchange/taler-exchange-httpd_management_post_keys.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/exchange/taler-exchange-httpd_management_post_keys.c
b/src/exchange/taler-exchange-httpd_management_post_keys.c
index e5613aab..86b17cb3 100644
--- a/src/exchange/taler-exchange-httpd_management_post_keys.c
+++ b/src/exchange/taler-exchange-httpd_management_post_keys.c
@@ -128,6 +128,9 @@ add_keys (void *cls,
struct TALER_DenominationPublicKey denom_pub;
/* For idempotency, check if the key is already active */
+ memset (&denom_pub,
+ 0,
+ sizeof (denom_pub));
qs = TEH_plugin->lookup_denomination_key (
TEH_plugin->cls,
&d->h_denom_pub,
@@ -197,6 +200,8 @@ add_keys (void *cls,
MHD_HTTP_FORBIDDEN,
TALER_EC_EXCHANGE_MANAGEMENT_KEYS_DENOMKEY_ADD_SIGNATURE_INVALID,
GNUNET_h2s (&d->h_denom_pub.hash));
+ if (! is_active)
+ TALER_denom_pub_free (&denom_pub);
return GNUNET_DB_STATUS_HARD_ERROR;
}
if (is_active)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-exchange] branch master updated: -logic cleanup,
gnunet <=