summaryrefslogtreecommitdiffstats
path: root/test/fatalerrtest.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2017-12-07 14:35:30 +0000
committerMatt Caswell <matt@openssl.org>2017-12-07 14:35:30 +0000
commite84282cbdafe0b4e49742106974ff8ee28087875 (patch)
tree3d4e4ff3e68b1bb70bc487a9e805c947f98c57c8 /test/fatalerrtest.c
parentf47270e10b7ec18e5719bb2260a7d6460af387ac (diff)
Fix the buffer sizing in the fatalerrtest
Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4867)
Diffstat (limited to 'test/fatalerrtest.c')
-rw-r--r--test/fatalerrtest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/fatalerrtest.c b/test/fatalerrtest.c
index fe2071f6e2..23357351f5 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;