fix potential use of uninitialized hash_context

This commit is contained in:
Christian Grothoff 2018-11-10 17:39:02 +01:00
parent 42a21ffc8e
commit e7682b3f8d
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -583,6 +583,7 @@ decode_keys_json (const json_t *resp_obj,
key_data->version = GNUNET_strdup (ver);
}
hash_context = NULL;
EXITIF (GNUNET_OK !=
GNUNET_JSON_parse (resp_obj,
(check_sig) ? mspec : &mspec[2],
@ -591,8 +592,6 @@ decode_keys_json (const json_t *resp_obj,
/* parse the master public key and issue date of the response */
if (check_sig)
hash_context = GNUNET_CRYPTO_hash_context_start ();
else
hash_context = NULL;
/* parse the signing keys */
{