]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Removed logically dead code from function i2r_issuer_sign_tool
authorGopal Sharma <67860577+gsharma-ad@users.noreply.github.com>
Fri, 12 Jan 2024 10:48:41 +0000 (16:18 +0530)
committerNeil Horman <nhorman@openssl.org>
Mon, 15 Jan 2024 13:55:06 +0000 (08:55 -0500)
Since new_line is assigned with 0 in the very begging of the function check added at line no. 106 will never become true. Hence removing.

CLA: trivial

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23284)

crypto/x509/v3_ist.c

index 4d5fe82f329e1bc4fe56ef5f49e64b667d2df262..ccca198eb8fd9a6b76e70fc76380820b508fdceb 100644 (file)
@@ -103,9 +103,6 @@ static int i2r_issuer_sign_tool(X509V3_EXT_METHOD *method,
         return 0;
     }
     if (ist->signTool != NULL) {
-        if (new_line == 1) {
-            BIO_write(out, "\n", 1);
-        }
         BIO_printf(out, "%*ssignTool    : ", indent, "");
         BIO_write(out, ist->signTool->data, ist->signTool->length);
         new_line = 1;