summaryrefslogtreecommitdiffstats
path: root/crypto/cmp
diff options
context:
space:
mode:
authorAnkita Shetty <ankita.s.shetty65@gmail.com>2020-11-23 17:12:33 +0100
committerDr. David von Oheimb <David.von.Oheimb@siemens.com>2020-12-02 12:35:16 +0100
commita676c53c7f456c5f3c61798ad99f7c30448e1c17 (patch)
tree14fbb66b27a09f8672cef6e09a60f9bc1755812c /crypto/cmp
parentDon't Overflow when printing Thawte Strong Extranet Version (diff)
downloadopenssl-a676c53c7f456c5f3c61798ad99f7c30448e1c17.tar.xz
openssl-a676c53c7f456c5f3c61798ad99f7c30448e1c17.zip
cmp_client.c: Remove dead code of variable 'txt' in cert_response()
Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com> Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/13488)
Diffstat (limited to 'crypto/cmp')
-rw-r--r--crypto/cmp/cmp_client.c7
1 files changed, 1 insertions, 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;