aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2021-08-31 21:51:58 +0200
committerChristian Grothoff <grothoff@gnunet.org>2021-08-31 21:51:58 +0200
commit6c6787b49a8d61fc8b8615333cbbdd9dc9cc9f96 (patch)
tree8685dfa9638d30c5f1d2e8ecc8a79a117ea21662
parent0013ce41e71a3c8008051b5e57a81f512192e80f (diff)
add assertions to help pin down #7007:
-rw-r--r--src/exchange/taler-exchange-httpd_keys.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/exchange/taler-exchange-httpd_keys.c b/src/exchange/taler-exchange-httpd_keys.c
index 77b2e9cfc..0d062fe1d 100644
--- a/src/exchange/taler-exchange-httpd_keys.c
+++ b/src/exchange/taler-exchange-httpd_keys.c
@@ -1404,6 +1404,11 @@ create_krd (struct TEH_KeyStateHandle *ksh,
struct TALER_ExchangeSignatureP exchange_sig;
json_t *keys;
+ GNUNET_assert (NULL != signkeys);
+ GNUNET_assert (NULL != recoup);
+ GNUNET_assert (NULL != denoms);
+ GNUNET_assert (NULL != ksh->auditors);
+ GNUNET_assert (NULL != TEH_currency);
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Creating /keys at cherry pick date %s\n",
GNUNET_STRINGS_absolute_time_to_string (last_cpd));
@@ -1525,7 +1530,7 @@ create_krd (struct TEH_KeyStateHandle *ksh,
* @param[in,out] ksh state handle to update
* @return #GNUNET_OK on success
*/
-static int
+static enum GNUNET_GenericResponseCode
finish_keys_response (struct TEH_KeyStateHandle *ksh)
{
json_t *recoup;