improve version number format check
This commit is contained in:
parent
20bce1bc8e
commit
d1c5337a88
@ -1 +1 @@
|
|||||||
Subproject commit 80b3182db5a5b13a765b2ab8846cb1d0f3281990
|
Subproject commit 880352a419beee4864f863182dbc695c859ee3f7
|
@ -712,6 +712,7 @@ decode_keys_json (const json_t *resp_obj,
|
|||||||
unsigned int age;
|
unsigned int age;
|
||||||
unsigned int revision;
|
unsigned int revision;
|
||||||
unsigned int current;
|
unsigned int current;
|
||||||
|
char dummy;
|
||||||
struct GNUNET_JSON_Specification spec[] = {
|
struct GNUNET_JSON_Specification spec[] = {
|
||||||
GNUNET_JSON_spec_string ("version",
|
GNUNET_JSON_spec_string ("version",
|
||||||
&ver),
|
&ver),
|
||||||
@ -730,7 +731,8 @@ decode_keys_json (const json_t *resp_obj,
|
|||||||
"%u:%u:%u",
|
"%u:%u:%u",
|
||||||
¤t,
|
¤t,
|
||||||
&revision,
|
&revision,
|
||||||
&age))
|
&age,
|
||||||
|
&dummy))
|
||||||
{
|
{
|
||||||
GNUNET_break_op (0);
|
GNUNET_break_op (0);
|
||||||
return GNUNET_SYSERR;
|
return GNUNET_SYSERR;
|
||||||
|
Loading…
Reference in New Issue
Block a user