From: Dr. Stephen Henson Date: Thu, 1 Oct 2009 00:12:49 +0000 (+0000) Subject: PR: 2056 X-Git-Tag: OpenSSL_0_9_8m-beta1~95 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6d73e9d8e85b1a84bd3bb319519089724ce2a9c1;p=oweals%2Fopenssl.git PR: 2056 Submitted by: Julia Lawall Approved by: steve@openssl.org Correct BIO_wirte error handling in asn1_par.c --- 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);