Skip to content

Commit

Permalink
crypto/cmp: fix clash of OSSL_CMP_CERTREQID_NONE with error result of…
Browse files Browse the repository at this point in the history
… ossl_cmp_asn1_get_int()
  • Loading branch information
DDvO committed Sep 14, 2023
1 parent fed4f82 commit b1834b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/cmp/cmp_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ static int cert_response(OSSL_CMP_CTX *ctx, int sleep, int rid,
if (rid == OSSL_CMP_CERTREQID_NONE) {
/* for OSSL_CMP_PKIBODY_P10CR learn CertReqId from response */
rid = ossl_cmp_asn1_get_int(crep->certReqId);
if (rid != OSSL_CMP_CERTREQID_NONE) {
if (rid < OSSL_CMP_CERTREQID_NONE) {
ERR_raise(ERR_LIB_CMP, CMP_R_BAD_REQUEST_ID);
return 0;
}
Expand Down

0 comments on commit b1834b4

Please sign in to comment.