mirror of
https://github.com/openssl/openssl.git
synced 2025-03-31 20:10:45 +08:00
Fix the buffer sizing in the fatalerrtest
Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4867)
This commit is contained in:
parent
f47270e10b
commit
e84282cbda
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user