Skip to content

Commit b7ef693

Browse files
committed
test: fix mem access typo
Signed-off-by: Hans Zandbelt <[email protected]>
1 parent 895b7d3 commit b7ef693

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/test_jose.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ START_TEST(test_jwk_private_key_parse) {
529529
apr_pool_t *pool = oidc_test_pool_get();
530530
oidc_jose_error_t err = {{'\0'}, 0, {'\0'}, {'\0'}};
531531
oidc_jwk_t *jwk = NULL;
532-
BIO *input = NULL, *inputCert = NULL;
532+
BIO *input = NULL;
533533
char *json = NULL;
534534
apr_byte_t isPrivateKey = TRUE;
535535

@@ -560,9 +560,9 @@ START_TEST(test_jwk_private_key_parse) {
560560
"rHuVwJVlTNk6MvFUIj4ayXdX13Qy4kTBRiQM7pumPaypEE4CrAfTWP0AYnEwz_FGluOpMZNzoAQ\"}");
561561
oidc_jwk_destroy(jwk);
562562

563-
inputCert = BIO_new(BIO_s_file());
564-
ck_assert_ptr_nonnull(inputCert);
565-
ck_assert_int_eq(BIO_read_filename(inputCert, ecPrivateKeyFile), 1);
563+
input = BIO_new(BIO_s_file());
564+
ck_assert_ptr_nonnull(input);
565+
ck_assert_int_eq(BIO_read_filename(input, ecPrivateKeyFile), 1);
566566
ck_assert_int_eq(oidc_jwk_pem_bio_to_jwk(pool, input, NULL, &jwk, isPrivateKey, &err), TRUE);
567567
BIO_free(input);
568568

0 commit comments

Comments
 (0)