summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2024-06-18 05:19:01 +0000
committertb <>2024-06-18 05:19:01 +0000
commit254d44bfbdcebd394f1822777940c8c7d9498d15 (patch)
treef79efd23fdb959bcdc688a466489fe13e8eb3625 /src
parent36ba4338dd26479d21f17ef1e68268b408bebd30 (diff)
downloadopenbsd-254d44bfbdcebd394f1822777940c8c7d9498d15.tar.gz
openbsd-254d44bfbdcebd394f1822777940c8c7d9498d15.tar.bz2
openbsd-254d44bfbdcebd394f1822777940c8c7d9498d15.zip
do_ext_i2d(): unwrap a line
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/x509/x509_conf.c5
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 {