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:
1c5ebcd
)
If BIO_snprintf failed, keep trying.
author
Rich Salz
<rsalz@openssl.org>
Mon, 6 Feb 2017 19:22:29 +0000
(14:22 -0500)
committer
Rich Salz
<rsalz@openssl.org>
Tue, 7 Feb 2017 15:44:47 +0000
(10:44 -0500)
Thanks to Graeme Perrow for reporting and providing a possible fix.
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2565)
crypto/bio/bio_cb.c
patch
|
blob
|
history
diff --git
a/crypto/bio/bio_cb.c
b/crypto/bio/bio_cb.c
index d3e860686c3c5821c27e40af5db95760d398039a..f96294bb430475186b089efc48b1280a54db335d 100644
(file)
--- a/
crypto/bio/bio_cb.c
+++ b/
crypto/bio/bio_cb.c
@@
-78,6
+78,9
@@
long MS_CALLBACK BIO_debug_callback(BIO *bio, int cmd, const char *argp,
len = BIO_snprintf(buf,sizeof buf,"BIO[%p]: ",(void *)bio);
+ /* Ignore errors and continue printing the other information. */
+ if (len < 0)
+ len = 0;
p = buf + len;
p_maxlen = sizeof(buf) - len;