diff options
-rw-r--r-- | src/lib/libcrypto/x509/x509_conf.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libcrypto/x509/x509_conf.c b/src/lib/libcrypto/x509/x509_conf.c index 189bf64405..30cf0b981c 100644 --- a/src/lib/libcrypto/x509/x509_conf.c +++ b/src/lib/libcrypto/x509/x509_conf.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509_conf.c,v 1.5 2023/02/16 08:38:17 tb Exp $ */ | 1 | /* $OpenBSD: x509_conf.c,v 1.6 2024/06/18 05:19:01 tb Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 1999. | 3 | * project 1999. |
4 | */ | 4 | */ |
@@ -196,8 +196,7 @@ do_ext_i2d(const X509V3_EXT_METHOD *method, int ext_nid, int crit, | |||
196 | /* Convert internal representation to DER */ | 196 | /* Convert internal representation to DER */ |
197 | if (method->it) { | 197 | if (method->it) { |
198 | ext_der = NULL; | 198 | ext_der = NULL; |
199 | ext_len = ASN1_item_i2d(ext_struc, &ext_der, | 199 | ext_len = ASN1_item_i2d(ext_struc, &ext_der, method->it); |
200 | method->it); | ||
201 | if (ext_len < 0) | 200 | if (ext_len < 0) |
202 | goto merr; | 201 | goto merr; |
203 | } else { | 202 | } else { |