projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb5a4bb
)
PR: 2056
author
Dr. Stephen Henson
<steve@openssl.org>
Thu, 1 Oct 2009 00:12:49 +0000
(
00:12
+0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Thu, 1 Oct 2009 00:12:49 +0000
(
00:12
+0000)
Submitted by: Julia Lawall <julia@diku.dk>
Approved by: steve@openssl.org
Correct BIO_wirte error handling in asn1_par.c
crypto/asn1/asn1_par.c
patch
|
blob
|
history
diff --git
a/crypto/asn1/asn1_par.c
b/crypto/asn1/asn1_par.c
index 8657f73d66a2cd6a73f68a238443625a1f52c092..cb08e154888f0e83109cf104f2e49949a4d5c658 100644
(file)
--- 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);