From: Gopal Sharma <67860577+gsharma-ad@users.noreply.github.com> Date: Fri, 12 Jan 2024 10:48:41 +0000 (+0530) Subject: Removed logically dead code from function i2r_issuer_sign_tool X-Git-Tag: openssl-3.3.0-alpha1~304 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ffeae4c4e7d779746c661e7fe17a0a21cc36c974;p=thirdparty%2Fopenssl.git 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) --- 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;