summaryrefslogtreecommitdiff
path: root/test/recordlentest.c
diff options
context:
space:
mode:
authorTomas Mraz <tomas@openssl.org>2022-10-24 12:28:58 +0200
committerTomas Mraz <tomas@openssl.org>2022-10-27 18:39:29 +0200
commitd8eb0e1988aba5d86aa6570357853cad0ab3f532 (patch)
treecc081e112df831faddc2558d27d823d84d665339 /test/recordlentest.c
parentc8c678e7d91ca2cea41c6c574cf7656a9404646f (diff)
downloadopenssl-new-d8eb0e1988aba5d86aa6570357853cad0ab3f532.tar.gz
tests: clear error queue before executing a testcase
There can be errors in the queue from previous tests and we look at it to verify we do not add spurious errors in some testcases. Fixes #19477 Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/19483) (cherry picked from commit 4bae06d47ae26b37a948d31f11884e1813f6d669)
Diffstat (limited to 'test/recordlentest.c')
-rw-r--r--test/recordlentest.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/test/recordlentest.c b/test/recordlentest.c
index 8567964ce1..c693b08913 100644
--- a/test/recordlentest.c
+++ b/test/recordlentest.c
@@ -101,8 +101,6 @@ static int test_record_overflow(int idx)
return 1;
#endif
- ERR_clear_error();
-
if (!TEST_true(create_ssl_ctx_pair(NULL, TLS_server_method(),
TLS_client_method(),
TLS1_VERSION, 0,