From 78ca13a2728aaf0c8d7ac5ca594b2b35b9946319 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Thu, 1 Oct 2009 00:11:04 +0000 Subject: [PATCH] PR: 2056 Submitted by: Julia Lawall Approved by: steve@openssl.org Correct BIO_wirte error handling in asn1_par.c --- crypto/asn1/asn1_par.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/asn1/asn1_par.c b/crypto/asn1/asn1_par.c index 688eb82718..aaca69aebd 100644 --- a/crypto/asn1/asn1_par.c +++ b/crypto/asn1/asn1_par.c @@ -239,7 +239,7 @@ static int asn1_parse2(BIO *bp, const unsigned char **pp, long length, int offse ii=d2i_ASN1_BOOLEAN(NULL,&opp,len+hl); if (ii < 0) { - if (BIO_write(bp,"Bad boolean\n",12)) + if (BIO_write(bp,"Bad boolean\n",12) <= 0) goto end; } BIO_printf(bp,":%d",ii); -- 2.25.1