summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorinoguchi <>2022-01-20 10:49:56 +0000
committerinoguchi <>2022-01-20 10:49:56 +0000
commitb3aaaf94f65e3ffeafabd22f37234dc20fc4f32f (patch)
tree7d197ec3e9559a98f42504035a49e7bf1800238e /src
parent558550abe5c4597d963f18f62f5b20100bce2373 (diff)
downloadopenbsd-b3aaaf94f65e3ffeafabd22f37234dc20fc4f32f.tar.gz
openbsd-b3aaaf94f65e3ffeafabd22f37234dc20fc4f32f.tar.bz2
openbsd-b3aaaf94f65e3ffeafabd22f37234dc20fc4f32f.zip
Add check for BIO_indent return value
CID 24869 ok jsing@ millert@ tb@
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/asn1/asn1_par.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libcrypto/asn1/asn1_par.c b/src/lib/libcrypto/asn1/asn1_par.c
index e9fe52021c..2d1c7b2b48 100644
--- a/src/lib/libcrypto/asn1/asn1_par.c
+++ b/src/lib/libcrypto/asn1/asn1_par.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: asn1_par.c,v 1.32 2022/01/14 23:55:46 inoguchi Exp $ */ 1/* $OpenBSD: asn1_par.c,v 1.33 2022/01/20 10:49:56 inoguchi Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -80,7 +80,8 @@ asn1_print_info(BIO *bp, int tag, int xclass, int constructed,
80 p="prim: "; 80 p="prim: ";
81 if (BIO_write(bp, p, 6) < 6) 81 if (BIO_write(bp, p, 6) < 6)
82 goto err; 82 goto err;
83 BIO_indent(bp, indent, 128); 83 if (!BIO_indent(bp, indent, 128))
84 goto err;
84 85
85 p = str; 86 p = str;
86 if ((xclass & V_ASN1_PRIVATE) == V_ASN1_PRIVATE) 87 if ((xclass & V_ASN1_PRIVATE) == V_ASN1_PRIVATE)