From 7c96dbcdab959fef74c4caae63cdebaa354ab252 Mon Sep 17 00:00:00 2001 From: Rich Salz Date: Thu, 25 Feb 2016 12:09:06 -0500 Subject: GH715: ENGINE_finish can take NULL Simplifies calling code. Also fixed up any !ptr tests that were nearby, turning them into NULL tests. Reviewed-by: Richard Levitte --- crypto/pem/pem_lib.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'crypto/pem') diff --git a/crypto/pem/pem_lib.c b/crypto/pem/pem_lib.c index e31ea03..946b00e 100644 --- a/crypto/pem/pem_lib.c +++ b/crypto/pem/pem_lib.c @@ -218,8 +218,7 @@ static int check_pem(const char *nm, const char *name) else r = 0; #ifndef OPENSSL_NO_ENGINE - if (e) - ENGINE_finish(e); + ENGINE_finish(e); #endif return r; } -- cgit v1.1