From: Ankita Shetty Date: Mon, 23 Nov 2020 16:12:33 +0000 (+0100) Subject: cmp_client.c: Remove dead code of variable 'txt' in cert_response() X-Git-Tag: openssl-3.0.0-alpha10~208 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a676c53c7f456c5f3c61798ad99f7c30448e1c17;p=thirdparty%2Fopenssl.git 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) --- diff --git a/crypto/cmp/cmp_client.c b/crypto/cmp/cmp_client.c index 75176cd1956..260a1811137 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;