[openssl-commits] [openssl] OpenSSL_1_1_0-stable update
Rich Salz
rsalz at openssl.org
Thu Dec 7 21:50:12 UTC 2017
The branch OpenSSL_1_1_0-stable has been updated
via 64b5b5bd7cfdef1f1204fa305e9d685de8bf5b7f (commit)
from 4749aba5a24a646cc1e84b1e4d21e6f52399da33 (commit)
- Log -----------------------------------------------------------------
commit 64b5b5bd7cfdef1f1204fa305e9d685de8bf5b7f
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/4868)
-----------------------------------------------------------------------
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 4a58839..690d7e2 100644
--- a/test/fatalerrtest.c
+++ b/test/fatalerrtest.c
@@ -69,7 +69,7 @@ static int test_fatalerr(void)
}
/* SSL_read()/SSL_write should fail because of a previous fatal error */
- if ((len = SSL_read(sssl, buf, sizeof(buf - 1))) > 0) {
+ if ((len = SSL_read(sssl, buf, sizeof(buf) - 1)) > 0) {
buf[len] = '\0';
printf("Unexpected success reading data: %s\n", buf);
goto err;
More information about the openssl-commits
mailing list