summaryrefslogtreecommitdiffstats
path: root/engines/e_sureware.c
diff options
context:
space:
mode:
Diffstat (limited to 'engines/e_sureware.c')
-rw-r--r--engines/e_sureware.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/engines/e_sureware.c b/engines/e_sureware.c
index 3c7b2b26bf..5e1786ca0f 100644
--- a/engines/e_sureware.c
+++ b/engines/e_sureware.c
@@ -404,10 +404,8 @@ static int surewarehk_ctrl(ENGINE *e, int cmd, long i, void *p,
{
BIO *bio = (BIO *)p;
CRYPTO_w_lock(CRYPTO_LOCK_ENGINE);
- if (logstream) {
- BIO_free(logstream);
- logstream = NULL;
- }
+ BIO_free(logstream);
+ logstream = NULL;
if (CRYPTO_add(&bio->references, 1, CRYPTO_LOCK_BIO) > 1)
logstream = bio;
else
@@ -596,8 +594,7 @@ static int surewarehk_finish(ENGINE *e)
goto err;
}
err:
- if (logstream)
- BIO_free(logstream);
+ BIO_free(logstream);
surewarehk_dso = NULL;
p_surewarehk_Init = NULL;
p_surewarehk_Finish = NULL;