diff options
Diffstat (limited to 'crypto/bio/bio_cb.c')
-rw-r--r-- | crypto/bio/bio_cb.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/bio/bio_cb.c b/crypto/bio/bio_cb.c index d3e860686c3c5..f96294bb43047 100644 --- 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; |