projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60ea150
)
CMP: fix gen_new() in cmp_msg.c checking wrong ITAVs
author
Dr. David von Oheimb
<David.von.Oheimb@siemens.com>
Sat, 17 Sep 2022 18:58:16 +0000
(20:58 +0200)
committer
Dr. David von Oheimb
<dev@ddvo.net>
Fri, 25 Nov 2022 08:15:37 +0000
(09:15 +0100)
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)
crypto/cmp/cmp_msg.c
patch
|
blob
|
history
diff --git
a/crypto/cmp/cmp_msg.c
b/crypto/cmp/cmp_msg.c
index 6a6f30c1a1eeec091fd8bd518fcdb584de8f6abb..619cf7b78bf0d66da0faa145a90fa633bd3ebf20 100644
(file)
--- 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))