[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: add missing delayed purge logic
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: add missing delayed purge logic |
Date: |
Sun, 22 Nov 2020 22:58:01 +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 6082ac81 add missing delayed purge logic
6082ac81 is described below
commit 6082ac8151fd845e65b2222de03b8b10de555f74
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Nov 22 22:57:58 2020 +0100
add missing delayed purge logic
---
src/util/taler-helper-crypto-rsa.c | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/src/util/taler-helper-crypto-rsa.c
b/src/util/taler-helper-crypto-rsa.c
index b8f959ee..e72a7824 100644
--- a/src/util/taler-helper-crypto-rsa.c
+++ b/src/util/taler-helper-crypto-rsa.c
@@ -78,9 +78,7 @@ struct DenominationKey
char *filename;
/**
- * The private key of the denomination. Will be NULL if the private
- * key is not available (this is the case after the key has expired
- * for signing coins, but is still valid for depositing coins).
+ * The private key of the denomination.
*/
struct TALER_DenominationPrivateKey denom_priv;
@@ -590,6 +588,14 @@ handle_done (void *cls)
&sr->header);
GNUNET_free (sr);
}
+ {
+ struct DenominationKey *dk = wi->dk;
+
+ dk->rc--;
+ if ( (0 == dk->rc) &&
+ (dk->purge) )
+ free_dk (dk);
+ }
GNUNET_free (wi);
GNUNET_assert (0 == pthread_mutex_lock (&done_lock));
}
--
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: add missing delayed purge logic,
gnunet <=