diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-03-13 23:02:46 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-03-13 23:02:46 +0100 |
commit | d1c5337a886128d484d647a4a66da91c3d52f60c (patch) | |
tree | 6e40f229a294ad4d1b47f98938e58800a8241a83 | |
parent | 20bce1bc8edb0438db1aaf4b4d4f7ffa9be03307 (diff) | |
download | exchange-d1c5337a886128d484d647a4a66da91c3d52f60c.tar.xz |
improve version number format check
m--------- | contrib/gana | 0 | ||||
-rw-r--r-- | src/lib/exchange_api_handle.c | 4 |
2 files changed, 3 insertions, 1 deletions
diff --git a/contrib/gana b/contrib/gana -Subproject 80b3182db5a5b13a765b2ab8846cb1d0f328199 +Subproject 880352a419beee4864f863182dbc695c859ee3f diff --git a/src/lib/exchange_api_handle.c b/src/lib/exchange_api_handle.c index 405b46419..15fb29aa7 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", ¤t, &revision, - &age)) + &age, + &dummy)) { GNUNET_break_op (0); return GNUNET_SYSERR; |