From c60e6184fd6552d5bb67f70a5a8a2502c9a74ee4 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 17 Jan 2023 17:52:39 +0100 Subject: [PATCH] terminate taler-exchange-offline on invalid inputs --- src/exchange-tools/taler-exchange-offline.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/exchange-tools/taler-exchange-offline.c b/src/exchange-tools/taler-exchange-offline.c index a8a25bd3c..eb64a6c9d 100644 --- a/src/exchange-tools/taler-exchange-offline.c +++ b/src/exchange-tools/taler-exchange-offline.c @@ -3322,7 +3322,7 @@ tofu_check (const struct TALER_SecurityModulePublicKeySetP *secmset) * @param signkeys keys to output * @return #GNUNET_OK on success */ -static int +static enum GNUNET_GenericReturnValue show_signkeys (const struct TALER_SecurityModulePublicKeyP *secm_pub, const json_t *signkeys) { @@ -4353,6 +4353,9 @@ cmd_handler (char *const *args, cmds[i].name, cmds[i].help); } + json_decref (out); + out = NULL; + GNUNET_SCHEDULER_shutdown (); }