summaryrefslogtreecommitdiff
path: root/src/lib/auditor_api_handle.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-01-24 18:52:30 +0100
committerChristian Grothoff <christian@grothoff.org>2019-01-24 18:52:30 +0100
commit0913f346f8f44bbe9b7c817bde9d411fad74ce09 (patch)
tree300d6f342edc2de39292585f78c0f0384c7b7839 /src/lib/auditor_api_handle.c
parent531b61cd43765e16ebaacd3900241efc9a6b6616 (diff)
downloadexchange-0913f346f8f44bbe9b7c817bde9d411fad74ce09.tar.gz
exchange-0913f346f8f44bbe9b7c817bde9d411fad74ce09.tar.bz2
exchange-0913f346f8f44bbe9b7c817bde9d411fad74ce09.zip
fix /version test
Diffstat (limited to 'src/lib/auditor_api_handle.c')
-rw-r--r--src/lib/auditor_api_handle.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/lib/auditor_api_handle.c b/src/lib/auditor_api_handle.c
index f14713e1..436c612b 100644
--- a/src/lib/auditor_api_handle.c
+++ b/src/lib/auditor_api_handle.c
@@ -213,7 +213,7 @@ decode_version_json (const json_t *resp_obj,
struct GNUNET_JSON_Specification spec[] = {
GNUNET_JSON_spec_string ("version",
&ver),
- GNUNET_JSON_spec_fixed_auto ("master_public_key",
+ GNUNET_JSON_spec_fixed_auto ("auditor_public_key",
&vi->auditor_pub),
GNUNET_JSON_spec_end()
};
@@ -232,14 +232,13 @@ decode_version_json (const json_t *resp_obj,
GNUNET_break_op (0);
return GNUNET_SYSERR;
}
- if (3 != sscanf (vi->version,
+ if (3 != sscanf (ver,
"%u:%u:%u",
&current,
&revision,
&age))
{
GNUNET_break_op (0);
- free_version_info (vi);
return GNUNET_SYSERR;
}
vi->version = GNUNET_strdup (ver);
@@ -510,11 +509,6 @@ request_version (void *cls)
CURLOPT_TIMEOUT,
(long) 300));
#endif
- GNUNET_assert (CURLE_OK ==
- curl_easy_setopt (eh,
- CURLOPT_HEADERDATA,
- vr));
-
vr->job = GNUNET_CURL_job_add (auditor->ctx,
eh,
GNUNET_NO,