summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>2021-03-08 08:04:54 +0100
committerDr. David von Oheimb <dev@ddvo.net>2021-03-09 11:02:41 +0100
commit4c52ee1dbfa1913a14968f395cc9900ed9beee5e (patch)
treef73de7bafeedd7ee99569694e806482b1dfe4681
parenthttp_test.c: Fix minor Coverity issue CID 1473608 (diff)
downloadopenssl-4c52ee1dbfa1913a14968f395cc9900ed9beee5e.tar.xz
openssl-4c52ee1dbfa1913a14968f395cc9900ed9beee5e.zip
cmp_hdr.c: Fix minor Coverity issue CID 1473605
Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14460)
-rw-r--r--crypto/cmp/cmp_hdr.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/crypto/cmp/cmp_hdr.c b/crypto/cmp/cmp_hdr.c
index 58b07dd8b2..a1770c1204 100644
--- a/crypto/cmp/cmp_hdr.c
+++ b/crypto/cmp/cmp_hdr.c
@@ -283,9 +283,6 @@ int ossl_cmp_hdr_set_transactionID(OSSL_CMP_CTX *ctx, OSSL_CMP_PKIHEADER *hdr)
OPENSSL_free(tid);
}
- if (ctx->transactionID == NULL
- && !set_random(&ctx->transactionID, ctx, OSSL_CMP_TRANSACTIONID_LENGTH))
- return 0;
return ossl_cmp_asn1_octet_string_set1(&hdr->transactionID,
ctx->transactionID);
}