]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
cmp_client.c: Remove dead code of variable 'txt' in cert_response()
authorAnkita Shetty <ankita.s.shetty65@gmail.com>
Mon, 23 Nov 2020 16:12:33 +0000 (17:12 +0100)
committerDr. David von Oheimb <David.von.Oheimb@siemens.com>
Wed, 2 Dec 2020 11:35:16 +0000 (12:35 +0100)
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)

crypto/cmp/cmp_client.c

index 75176cd1956ec5f7ce4b0eb0340138e462441e36..260a1811137f1c39bdf0c50b12e71771491aa1da 100644 (file)
@@ -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;