Skip to content
Snippets Groups Projects
Commit 91df0af8 authored by Dmitriy A. Gerasimov's avatar Dmitriy A. Gerasimov
Browse files

[*] Emergency fix the key null check on public key serialization

parent 43bb005b
No related branches found
No related tags found
No related merge requests found
......@@ -322,7 +322,7 @@ uint8_t* dap_enc_key_serealize_priv_key(dap_enc_key_t *a_key, size_t *a_buflen_o
uint8_t* dap_enc_key_serealize_pub_key(dap_enc_key_t *a_key, size_t *a_buflen_out)
{
uint8_t *data = NULL;
if ( a_key->pub_key_data ){
if ( a_key->pub_key_data == NULL ){
log_it(L_ERROR, "Public key is NULL");
return NULL;
}
......
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