[openssl-commits] [openssl] master update
Rich Salz
rsalz at openssl.org
Thu Dec 7 21:48:29 UTC 2017
The branch master has been updated
via e84282cbdafe0b4e49742106974ff8ee28087875 (commit)
from f47270e10b7ec18e5719bb2260a7d6460af387ac (commit)
- Log -----------------------------------------------------------------
commit e84282cbdafe0b4e49742106974ff8ee28087875
Author: Matt Caswell <matt at openssl.org>
Date: Thu Dec 7 14:35:30 2017 +0000
Fix the buffer sizing in the fatalerrtest
Reviewed-by: Rich Salz <rsalz at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4867)
-----------------------------------------------------------------------
Summary of changes:
test/fatalerrtest.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/fatalerrtest.c b/test/fatalerrtest.c
index fe2071f..2335735 100644
--- a/test/fatalerrtest.c
+++ b/test/fatalerrtest.c
@@ -59,7 +59,7 @@ static int test_fatalerr(void)
goto err;
/* SSL_read()/SSL_write should fail because of a previous fatal error */
- if (!TEST_int_le(len = SSL_read(sssl, buf, sizeof(buf - 1)), 0)) {
+ if (!TEST_int_le(len = SSL_read(sssl, buf, sizeof(buf) - 1), 0)) {
buf[len] = '\0';
TEST_error("Unexpected success reading data: %s\n", buf);
goto err;
More information about the openssl-commits
mailing list