summaryrefslogtreecommitdiffstats
path: root/test/sslcorrupttest.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/sslcorrupttest.c
parentFix parameter names for RSA private key example (diff)
downloadopenssl-d8eb0e1988aba5d86aa6570357853cad0ab3f532.tar.xz
openssl-d8eb0e1988aba5d86aa6570357853cad0ab3f532.zip
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/sslcorrupttest.c')
-rw-r--r--test/sslcorrupttest.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/test/sslcorrupttest.c b/test/sslcorrupttest.c
index 57ce2a8a8e..50c3bf7eeb 100644
--- a/test/sslcorrupttest.c
+++ b/test/sslcorrupttest.c
@@ -192,8 +192,6 @@ static int test_ssl_corrupt(int testidx)
docorrupt = 0;
- ERR_clear_error();
-
TEST_info("Starting #%d, %s", testidx, cipher_list[testidx]);
if (!TEST_true(create_ssl_ctx_pair(NULL, TLS_server_method(),