The branch OpenSSL_1_0_2-stable has been updated
       via  89ec60912c649417ce2288be005bee0c66122803 (commit)
      from  1c5ebcd87822c2af4b8fdc23fa8b9a7201fb7097 (commit)


- Log -----------------------------------------------------------------
commit 89ec60912c649417ce2288be005bee0c66122803
Author: Rich Salz <rs...@openssl.org>
Date:   Mon Feb 6 14:22:29 2017 -0500

    If BIO_snprintf failed, keep trying.
    
    Thanks to Graeme Perrow for reporting and providing a possible fix.
    
    Reviewed-by: Richard Levitte <levi...@openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/2565)

-----------------------------------------------------------------------

Summary of changes:
 crypto/bio/bio_cb.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/crypto/bio/bio_cb.c b/crypto/bio/bio_cb.c
index d3e8606..f96294b 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;
 
_____
openssl-commits mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-commits

Reply via email to