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 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;
|
||||
|
Loading…
Reference in New Issue
Block a user