summaryrefslogtreecommitdiff
path: root/src/lib/exchange_api_handle.c
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-08-31 21:18:55 +0200
committerFlorian Dold <florian.dold@gmail.com>2019-08-31 21:18:55 +0200
commit34652f45f3c321044b853df6c452578da94c8739 (patch)
treea29a3df647173d915aa1e003de45c9d6c46ba5d4 /src/lib/exchange_api_handle.c
parent000d25c7197b4a70740b937452adcd37659b8daf (diff)
downloadexchange-34652f45f3c321044b853df6c452578da94c8739.tar.gz
exchange-34652f45f3c321044b853df6c452578da94c8739.tar.bz2
exchange-34652f45f3c321044b853df6c452578da94c8739.zip
don't mark auditor as 'up' when version request faileddemo-2019-08-31-00
Diffstat (limited to 'src/lib/exchange_api_handle.c')
-rw-r--r--src/lib/exchange_api_handle.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/exchange_api_handle.c b/src/lib/exchange_api_handle.c
index d0777dc0..bbe5f45a 100644
--- a/src/lib/exchange_api_handle.c
+++ b/src/lib/exchange_api_handle.c
@@ -672,6 +672,15 @@ auditor_version_cb
{
struct TEAH_AuditorListEntry *ale = cls;
+ if (NULL == vi)
+ {
+ /* In this case, we don't mark the auditor as 'up' */
+ GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+ _ ("Auditor `%s' gave unexpected version response.\n"),
+ ale->auditor_url);
+ return;
+ }
+
if (0 != (TALER_AUDITOR_VC_INCOMPATIBLE & compat))
{
GNUNET_log (GNUNET_ERROR_TYPE_WARNING,