]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
test/evp_extra_test.c: Peek at the error instead of getting it.
authorRichard Levitte <levitte@openssl.org>
Wed, 9 Jun 2021 09:00:00 +0000 (11:00 +0200)
committerRichard Levitte <levitte@openssl.org>
Tue, 15 Jun 2021 14:21:32 +0000 (16:21 +0200)
If there is an error report, we want to get it printed too.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15604)

test/evp_extra_test.c

index 33bb698ff37db2d89ea661e803081cc7cbdcebab..f10e0077ecb50192a29ad16c47c5f3e59715d203 100644 (file)
@@ -1294,7 +1294,7 @@ static int test_EVP_PKCS82PKEY_wrong_tag(void)
         || !TEST_int_gt(BIO_get_mem_data(membio, &membuf), 0)
         || !TEST_ptr(p8inf = d2i_PKCS8_PRIV_KEY_INFO_bio(membio, NULL))
         || !TEST_ptr(pkey2 = EVP_PKCS82PKEY(p8inf))
-        || !TEST_int_eq(ERR_get_error(), 0)) {
+        || !TEST_int_eq(ERR_peek_last_error(), 0)) {
         goto done;
     }