diff options
| author | Christian Grothoff <christian@grothoff.org> | 2018-11-10 17:39:02 +0100 | 
|---|---|---|
| committer | Christian Grothoff <christian@grothoff.org> | 2018-11-10 17:39:02 +0100 | 
| commit | e7682b3f8dce9e7be1ced921fc6d8d84020e99d8 (patch) | |
| tree | a0f8319eeeffeb0f3d18e8a724e5e76dfa7602df /src | |
| parent | 42a21ffc8ef36a141db2a7c57a20e70747028524 (diff) | |
fix potential use of uninitialized hash_context
Diffstat (limited to 'src')
| -rw-r--r-- | src/exchange-lib/exchange_api_handle.c | 3 | 
1 files changed, 1 insertions, 2 deletions
| diff --git a/src/exchange-lib/exchange_api_handle.c b/src/exchange-lib/exchange_api_handle.c index 895d1f1d..d7fa65fa 100644 --- a/src/exchange-lib/exchange_api_handle.c +++ b/src/exchange-lib/exchange_api_handle.c @@ -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 */    { | 
