Skip to content

Commit

Permalink
Fix test on line 217
Browse files Browse the repository at this point in the history
  • Loading branch information
huitema committed May 20, 2024
1 parent 44741e9 commit 117011f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/mbedtls.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 117011f

Please sign in to comment.