add debug message on BIO write return value when printing out error nodes

This commit is contained in:
Jacob Barthelmeh
2021-03-17 16:33:37 +07:00
parent d439694eb6
commit da56c33f48

View File

@@ -16459,7 +16459,9 @@ int wolfSSL_set_compression(WOLFSSL* ssl)
wc_RemoveErrorNode(0); wc_RemoveErrorNode(0);
} }
} while (ret >= 0); } while (ret >= 0);
wolfSSL_BIO_write(bio, "", 1); if (wolfSSL_BIO_write(bio, "", 1) != 1) {
WOLFSSL_MSG("Issue writing final string terminator");
}
} }
#endif /* !NO_BIO */ #endif /* !NO_BIO */
#endif /* OPENSSL_EXTRA || DEBUG_WOLFSSL_VERBOSE */ #endif /* OPENSSL_EXTRA || DEBUG_WOLFSSL_VERBOSE */