diff options
| -rw-r--r-- | src/lib/libcrypto/ts/ts_rsp_verify.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libcrypto/ts/ts_rsp_verify.c b/src/lib/libcrypto/ts/ts_rsp_verify.c index e9a778bb88..8731e04c0d 100644 --- a/src/lib/libcrypto/ts/ts_rsp_verify.c +++ b/src/lib/libcrypto/ts/ts_rsp_verify.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ts_rsp_verify.c,v 1.32 2025/12/05 14:19:27 tb Exp $ */ | 1 | /* $OpenBSD: ts_rsp_verify.c,v 1.33 2026/01/27 14:18:32 tb Exp $ */ |
| 2 | /* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL | 2 | /* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL |
| 3 | * project 2002. | 3 | * project 2002. |
| 4 | */ | 4 | */ |
| @@ -365,6 +365,8 @@ ESS_get_signing_cert_v2(PKCS7_SIGNER_INFO *si) | |||
| 365 | attr = PKCS7_get_signed_attribute(si, NID_id_smime_aa_signingCertificateV2); | 365 | attr = PKCS7_get_signed_attribute(si, NID_id_smime_aa_signingCertificateV2); |
| 366 | if (attr == NULL) | 366 | if (attr == NULL) |
| 367 | return NULL; | 367 | return NULL; |
| 368 | if (attr->type != V_ASN1_SEQUENCE) | ||
| 369 | return NULL; | ||
| 368 | p = attr->value.sequence->data; | 370 | p = attr->value.sequence->data; |
| 369 | return d2i_ESS_SIGNING_CERT_V2(NULL, &p, attr->value.sequence->length); | 371 | return d2i_ESS_SIGNING_CERT_V2(NULL, &p, attr->value.sequence->length); |
| 370 | } | 372 | } |
