From 30fffc586af6b8c098f89a77b9cbaa7de4b9752f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Al=D0=B5x=D0=B0nder=20Lysik=D0=BEv?= <alexander.lysikov@demlabs.net> Date: Mon, 17 Jun 2019 21:54:08 +0500 Subject: [PATCH] fixed dap_enc_sig_bliss_key_delete() --- src/dap_enc_bliss.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/dap_enc_bliss.c b/src/dap_enc_bliss.c index 87c8d9a..e7046b5 100755 --- a/src/dap_enc_bliss.c +++ b/src/dap_enc_bliss.c @@ -139,8 +139,10 @@ int dap_enc_sig_bliss_verify_sign(struct dap_enc_key * key, const void * msg, void dap_enc_sig_bliss_key_delete(struct dap_enc_key *key) { - bliss_b_private_key_delete(key->priv_key_data); - bliss_b_public_key_delete(key->pub_key_data); + if(key->priv_key_data) + bliss_b_private_key_delete(key->priv_key_data); + if(key->pub_key_data) + bliss_b_public_key_delete(key->pub_key_data); } /* Serialize a signature */ -- GitLab