commit 6d1b5aa03a03fdc8f09b8ee382b02b0eece834a3
parent 43545e5e760213d1a3bc16e11275574654ba55a5
Author: Christian Grothoff <grothoff@gnunet.org>
Date: Sun, 16 Aug 2026 08:44:46 +0200
check for failure cases
Diffstat:
3 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/src/lib/auditor_api_get_config.c b/src/lib/auditor_api_get_config.c
@@ -258,6 +258,12 @@ TALER_AUDITOR_get_config (struct GNUNET_CURL_Context *ctx,
eh,
&config_completed_cb,
auditor);
+ if (NULL == auditor->vr)
+ {
+ GNUNET_break (0);
+ TALER_AUDITOR_get_config_cancel (auditor);
+ return NULL;
+ }
return auditor;
}
diff --git a/src/lib/auditor_api_put_deposit_confirmation.c b/src/lib/auditor_api_put_deposit_confirmation.c
@@ -385,6 +385,12 @@ TALER_AUDITOR_deposit_confirmation (
dh->ctx.headers,
&handle_deposit_confirmation_finished,
dh);
+ if (NULL == dh->job)
+ {
+ GNUNET_break (0);
+ TALER_AUDITOR_deposit_confirmation_cancel (dh);
+ return NULL;
+ }
{
/* Disable 100 continue processing */
struct curl_slist *x_headers;
diff --git a/src/lib/exchange_api_get-management-keys.c b/src/lib/exchange_api_get-management-keys.c
@@ -413,6 +413,13 @@ TALER_EXCHANGE_get_management_keys_start (
return TALER_EC_GENERIC_CONFIGURATION_INVALID;
}
eh = TALER_EXCHANGE_curl_easy_get_ (gmkh->url);
+ if (NULL == eh)
+ {
+ GNUNET_break (0);
+ GNUNET_free (gmkh->url);
+ gmkh->url = NULL;
+ return TALER_EC_GENERIC_INTERNAL_INVARIANT_FAILURE;
+ }
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Requesting URL '%s'\n",
gmkh->url);