From 56a706db519ad259b4ed93d3309646e994953496 Mon Sep 17 00:00:00 2001 From: tb Date: Sun, 26 Dec 2021 15:38:49 +0000 Subject: [PATCH] Check BIO_indent() return like all the others in this file. CID 345118 --- lib/libcrypto/gost/gostr341001_ameth.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/libcrypto/gost/gostr341001_ameth.c b/lib/libcrypto/gost/gostr341001_ameth.c index d4c3d8a9c74..ce203a6c215 100644 --- a/lib/libcrypto/gost/gostr341001_ameth.c +++ b/lib/libcrypto/gost/gostr341001_ameth.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gostr341001_ameth.c,v 1.18 2021/12/12 21:30:14 tb Exp $ */ +/* $OpenBSD: gostr341001_ameth.c,v 1.19 2021/12/26 15:38:49 tb Exp $ */ /* * Copyright (c) 2014 Dmitry Eremin-Solenikov * Copyright (c) 2005-2006 Cryptocom LTD @@ -365,7 +365,8 @@ pub_print_gost01(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx) BIO_printf(out, "X:"); BN_print(out, X); BIO_printf(out, "\n"); - BIO_indent(out, indent + 3, 128); + if (BIO_indent(out, indent + 3, 128) == 0) + goto err; BIO_printf(out, "Y:"); BN_print(out, Y); BIO_printf(out, "\n"); -- 2.20.1