projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
crypto/cmp: fix clash of OSSL_CMP_CERTREQID_NONE with error result of ossl_cmp_asn1_g...
[openssl.git]
/
crypto
/
cmp
/
cmp_msg.c
diff --git
a/crypto/cmp/cmp_msg.c
b/crypto/cmp/cmp_msg.c
index 2b421ee83bc8b7e10ae4ff86e10f857286665330..a7e22d874ade5604983ab2b566cbc7e23cda2890 100644
(file)
--- a/
crypto/cmp/cmp_msg.c
+++ b/
crypto/cmp/cmp_msg.c
@@
-984,7
+984,7
@@
static int suitable_rid(const ASN1_INTEGER *certReqId, int rid)
return 1;
trid = ossl_cmp_asn1_get_int(certReqId);
- if (trid <
OSSL_CMP_CERTREQID_NONE
) {
+ if (trid <
= OSSL_CMP_CERTREQID_INVALID
) {
ERR_raise(ERR_LIB_CMP, CMP_R_BAD_REQUEST_ID);
return 0;
}