Commit 89ec6091 authored by Rich Salz's avatar Rich Salz
Browse files

If BIO_snprintf failed, keep trying.



Thanks to Graeme Perrow for reporting and providing a possible fix.

Reviewed-by: default avatarRichard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2565)
parent 1c5ebcd8
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;