]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
prime.c: Remove uneeded if check for NULL value
authorNorbert Pocs <norbertp@openssl.org>
Wed, 14 May 2025 13:52:56 +0000 (15:52 +0200)
committerNeil Horman <nhorman@openssl.org>
Thu, 15 May 2025 19:38:10 +0000 (15:38 -0400)
This was reported by coverity scan issue 1646789

Signed-off-by: Norbert Pocs <norbertp@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27623)

apps/prime.c

index a14f4170303639ad8168d690a6699ac6ceaa5bb5..1e149a3bd5da37f21145933d365b984cdfdb597f 100644 (file)
@@ -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;
             }
         }