From ffeae4c4e7d779746c661e7fe17a0a21cc36c974 Mon Sep 17 00:00:00 2001 From: Gopal Sharma <67860577+gsharma-ad@users.noreply.github.com> Date: Fri, 12 Jan 2024 16:18:41 +0530 Subject: [PATCH] Removed logically dead code from function i2r_issuer_sign_tool 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 Reviewed-by: Matt Caswell Reviewed-by: Neil Horman (Merged from https://github.com/openssl/openssl/pull/23284) --- crypto/x509/v3_ist.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/crypto/x509/v3_ist.c b/crypto/x509/v3_ist.c index 4d5fe82f329..ccca198eb8f 100644 --- a/crypto/x509/v3_ist.c +++ b/crypto/x509/v3_ist.c @@ -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; -- 2.47.2