fix indentation, and properly report vc protocol error if signatures are invalid

This commit is contained in:
Christian Grothoff 2019-08-21 19:13:14 +02:00
parent dbea8baaff
commit 8577686bbe
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -813,8 +813,7 @@ decode_keys_json (const json_t *resp_obj,
&key_data->master_pub),
GNUNET_JSON_spec_absolute_time ("list_issue_date",
&key_data->list_issue_date),
GNUNET_JSON_spec_relative_time
("reserve_closing_delay",
GNUNET_JSON_spec_relative_time ("reserve_closing_delay",
&key_data->reserve_closing_delay),
GNUNET_JSON_spec_end()
};
@ -1037,6 +1036,7 @@ decode_keys_json (const json_t *resp_obj,
return GNUNET_OK;
EXITIF_exit:
*vc = TALER_EXCHANGE_VC_PROTOCOL_ERROR;
if (NULL != hash_context)
GNUNET_CRYPTO_hash_context_abort (hash_context);
return GNUNET_SYSERR;