Skip to content
Snippets Groups Projects
Commit 2342392e authored by armatusmiles's avatar armatusmiles
Browse files

[*] Fix write in NULL FILE pointer

parent 0e422afa
No related branches found
No related tags found
No related merge requests found
......@@ -198,6 +198,11 @@ void dap_chain_block_write(dap_chain_block_cache_t *l_block_cache){
} else
return;
if(l_hash_type_file == NULL) {
log_it(L_ERROR, "Error write block. Hash file is NULL");
return;
}
pthread_mutex_lock(&s_mutex);
fseek(l_hash_type_file, sizeof (dap_chain_file_header_t), SEEK_SET);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment