Skip to content

Commit

Permalink
test: improve error handling in x509_set_serial_check()
Browse files Browse the repository at this point in the history
Signed-off-by: Valerio Setti <[email protected]>
  • Loading branch information
valeriosetti committed Jan 26, 2023
1 parent 8cf549d commit 7ba0037
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/suites/test_suite_x509write.function
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,8 @@ void x509_set_serial_check()
sizeof(invalid_serial)), 0);
TEST_EQUAL(mbedtls_x509write_crt_set_serial(&ctx, &serial_mpi),
MBEDTLS_ERR_X509_BAD_INPUT_DATA);

exit:
mbedtls_mpi_free(&serial_mpi);
}
/* END_CASE */
Expand Down

0 comments on commit 7ba0037

Please sign in to comment.