From 6d73e9d8e85b1a84bd3bb319519089724ce2a9c1 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Thu, 1 Oct 2009 00:12:49 +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 8657f73d66..cb08e15488 100644 --- a/crypto/asn1/asn1_par.c +++ b/crypto/asn1/asn1_par.c @@ -246,7 +246,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