From 117011f4e603f08232cbd4d1c5dc8b31af463f72 Mon Sep 17 00:00:00 2001 From: Christian Huitema Date: Sun, 19 May 2024 18:35:15 -0700 Subject: [PATCH] Fix test on line 217 --- t/mbedtls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/mbedtls.c b/t/mbedtls.c index 0d2faa17..b033d45f 100644 --- a/t/mbedtls.c +++ b/t/mbedtls.c @@ -212,9 +212,9 @@ int test_load_one_der_key(char const *path, int expect_failure) ptls_context_t ctx = {0}; ret = ptls_mbedtls_load_private_key(&ctx, path); - if (ret != 0 || expect_failure) { + if (ret != 0) { /* Cannot create sign_certificate */ - ok(ret == 0); + ok(ret == 0 || expect_failure); ret = -1; } else if (ctx.sign_certificate == NULL) { /* Sign_certificate not set in ptls context */