summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-03-13 23:02:46 +0100
committerChristian Grothoff <christian@grothoff.org>2021-03-13 23:02:46 +0100
commitd1c5337a886128d484d647a4a66da91c3d52f60c (patch)
tree6e40f229a294ad4d1b47f98938e58800a8241a83 /src/lib
parent20bce1bc8edb0438db1aaf4b4d4f7ffa9be03307 (diff)
downloadexchange-d1c5337a886128d484d647a4a66da91c3d52f60c.tar.gz
exchange-d1c5337a886128d484d647a4a66da91c3d52f60c.tar.bz2
exchange-d1c5337a886128d484d647a4a66da91c3d52f60c.zip
improve version number format check
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/exchange_api_handle.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/exchange_api_handle.c b/src/lib/exchange_api_handle.c
index 405b4641..15fb29aa 100644
--- a/src/lib/exchange_api_handle.c
+++ b/src/lib/exchange_api_handle.c
@@ -712,6 +712,7 @@ decode_keys_json (const json_t *resp_obj,
unsigned int age;
unsigned int revision;
unsigned int current;
+ char dummy;
struct GNUNET_JSON_Specification spec[] = {
GNUNET_JSON_spec_string ("version",
&ver),
@@ -730,7 +731,8 @@ decode_keys_json (const json_t *resp_obj,
"%u:%u:%u",
&current,
&revision,
- &age))
+ &age,
+ &dummy))
{
GNUNET_break_op (0);
return GNUNET_SYSERR;