aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/asn1/asn1_par.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-10-01 00:11:04 +0000
committerDr. Stephen Henson <steve@openssl.org>2009-10-01 00:11:04 +0000
commit78ca13a2728aaf0c8d7ac5ca594b2b35b9946319 (patch)
tree57a2f8ba0c19a620edfcf8cd5946fb444585630a /crypto/asn1/asn1_par.c
parentd4778ae47ea6f55f6b153e858ebc526fc05ef5a8 (diff)
downloadopenssl-78ca13a2728aaf0c8d7ac5ca594b2b35b9946319.tar.gz
PR: 2056
Submitted by: Julia Lawall <julia@diku.dk> Approved by: steve@openssl.org Correct BIO_wirte error handling in asn1_par.c
Diffstat (limited to 'crypto/asn1/asn1_par.c')
-rw-r--r--crypto/asn1/asn1_par.c2
1 files changed, 1 insertions, 1 deletions
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);