diff options
Diffstat (limited to 'src/regress/lib/libcrypto/asn1/asn1complex.c')
| -rw-r--r-- | src/regress/lib/libcrypto/asn1/asn1complex.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/regress/lib/libcrypto/asn1/asn1complex.c b/src/regress/lib/libcrypto/asn1/asn1complex.c index eaabd9e8c3..dfad345c6d 100644 --- a/src/regress/lib/libcrypto/asn1/asn1complex.c +++ b/src/regress/lib/libcrypto/asn1/asn1complex.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: asn1complex.c,v 1.1 2021/12/09 16:30:57 jsing Exp $ */ | 1 | /* $OpenBSD: asn1complex.c,v 1.2 2022/04/27 17:43:41 jsing Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2017, 2021 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2017, 2021 Joel Sing <jsing@openbsd.org> |
| 4 | * | 4 | * |
| @@ -163,6 +163,8 @@ do_asn1_constructed_test(const struct asn1_constructed_test *act) | |||
| 163 | long err; | 163 | long err; |
| 164 | int failed = 1; | 164 | int failed = 1; |
| 165 | 165 | ||
| 166 | ERR_clear_error(); | ||
| 167 | |||
| 166 | p = act->asn1; | 168 | p = act->asn1; |
| 167 | aos = d2i_ASN1_OCTET_STRING(NULL, &p, act->asn1_len); | 169 | aos = d2i_ASN1_OCTET_STRING(NULL, &p, act->asn1_len); |
| 168 | if (!act->valid) { | 170 | if (!act->valid) { |
