summaryrefslogtreecommitdiff
path: root/src/kyclogic
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-02-26 20:35:50 +0100
committerChristian Grothoff <christian@grothoff.org>2024-02-26 20:35:50 +0100
commit6d2b01d1645a1520099aae9c59ce3b7da99310f4 (patch)
tree86a5eb2e49582196138bdb228c687727b92378c8 /src/kyclogic
parent1c6d04f519a130f67ea6ef7c98ed4cbcfcee7611 (diff)
downloadexchange-6d2b01d1645a1520099aae9c59ce3b7da99310f4.tar.gz
exchange-6d2b01d1645a1520099aae9c59ce3b7da99310f4.tar.bz2
exchange-6d2b01d1645a1520099aae9c59ce3b7da99310f4.zip
-improve error handling
Diffstat (limited to 'src/kyclogic')
-rw-r--r--src/kyclogic/plugin_kyclogic_oauth2.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/kyclogic/plugin_kyclogic_oauth2.c b/src/kyclogic/plugin_kyclogic_oauth2.c
index 4225f45c0..3a1f50bcf 100644
--- a/src/kyclogic/plugin_kyclogic_oauth2.c
+++ b/src/kyclogic/plugin_kyclogic_oauth2.c
@@ -611,6 +611,17 @@ handle_curl_setup_finished (void *cls,
ih->job = NULL;
switch (response_code)
{
+ case 0:
+ GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+ "/setup URL failed to return HTTP response\n");
+ ih->cb (ih->cb_cls,
+ TALER_EC_EXCHANGE_KYC_PROOF_BACKEND_INVALID_RESPONSE,
+ NULL,
+ NULL,
+ NULL,
+ "/setup request to OAuth 2.0 backend returned no response");
+ GNUNET_free (ih);
+ return;
case MHD_HTTP_OK:
{
const char *nonce;