diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2022-09-17 20:58:16 +0200 |
---|---|---|
committer | Dr. David von Oheimb <dev@ddvo.net> | 2022-11-25 09:15:37 +0100 |
commit | 7e3034939b40ee15013bdba9ff6178de6bcc26d4 (patch) | |
tree | 665f2de2c29fe35b1094cea44546867e6c3fc2ea | |
parent | 60ea150b1f535e4f0c76e23af4130b3861fabf54 (diff) |
CMP: fix gen_new() in cmp_msg.c checking wrong ITAVs
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
(Merged from https://github.com/openssl/openssl/pull/19216)
-rw-r--r-- | crypto/cmp/cmp_msg.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/cmp/cmp_msg.c b/crypto/cmp/cmp_msg.c index 6a6f30c1a1..619cf7b78b 100644 --- a/crypto/cmp/cmp_msg.c +++ b/crypto/cmp/cmp_msg.c @@ -699,8 +699,7 @@ static OSSL_CMP_MSG *gen_new(OSSL_CMP_CTX *ctx, if ((msg = ossl_cmp_msg_create(ctx, body_type)) == NULL) return NULL; - if (ctx->genm_ITAVs != NULL - && !ossl_cmp_msg_gen_push1_ITAVs(msg, itavs)) + if (itavs != NULL && !ossl_cmp_msg_gen_push1_ITAVs(msg, itavs)) goto err; if (!ossl_cmp_msg_protect(ctx, msg)) |