From a676c53c7f456c5f3c61798ad99f7c30448e1c17 Mon Sep 17 00:00:00 2001 From: Ankita Shetty Date: Mon, 23 Nov 2020 17:12:33 +0100 Subject: [PATCH] cmp_client.c: Remove dead code of variable 'txt' in cert_response() Reviewed-by: David von Oheimb Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/13488) --- crypto/cmp/cmp_client.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/crypto/cmp/cmp_client.c b/crypto/cmp/cmp_client.c index 75176cd195..260a181113 100644 --- a/crypto/cmp/cmp_client.c +++ b/crypto/cmp/cmp_client.c @@ -633,12 +633,7 @@ static int cert_response(OSSL_CMP_CTX *ctx, int sleep, int rid, /* not throwing failure earlier as transfer_cb may call ERR_clear_error() */ if (fail_info != 0) { - if (txt == NULL) - ERR_raise_data(ERR_LIB_CMP, CMP_R_CERTIFICATE_NOT_ACCEPTED, - "rejecting newly enrolled cert with subject: %s", - subj); - else - ERR_raise_data(ERR_LIB_CMP, CMP_R_CERTIFICATE_NOT_ACCEPTED, + ERR_raise_data(ERR_LIB_CMP, CMP_R_CERTIFICATE_NOT_ACCEPTED, "rejecting newly enrolled cert with subject: %s; %s", subj, txt); ret = 0;