From: Norbert Pocs Date: Wed, 14 May 2025 13:52:56 +0000 (+0200) Subject: prime.c: Remove uneeded if check for NULL value X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0d3f0876ac1addda7ce044063e08ac68b39ad8b9;p=thirdparty%2Fopenssl.git prime.c: Remove uneeded if check for NULL value This was reported by coverity scan issue 1646789 Signed-off-by: Norbert Pocs Reviewed-by: Saša Nedvědický Reviewed-by: Neil Horman Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/27623) --- diff --git a/apps/prime.c b/apps/prime.c index a14f4170303..1e149a3bd5d 100644 --- a/apps/prime.c +++ b/apps/prime.c @@ -202,8 +202,7 @@ opthelp: if (bytes_read < 0) BIO_printf(bio_err, "Read error in %s\n", argv[0]); - if (in != NULL) - BIO_free(in); + BIO_free(in); in = NULL; } }