diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-10-01 00:11:49 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-10-01 00:11:49 +0000 |
commit | fed5333248ef4635422ccf482e4837394c85f24c (patch) | |
tree | 7d9ee16169ecffbe06a32b33e955bf2db88e42ae /crypto/asn1 | |
parent | 3d1dab44048491957246acac3c38902484e6349c (diff) |
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')
-rw-r--r-- | crypto/asn1/asn1_par.c | 2 |
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); |