Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initialize mbedtls_x509write_csr struct before USE_PSA_INIT(), mbedtl…
…s_x509write_csr_free() will crash if uninitialized When USE_PSA_INIT() failed because lack of seedfile, mbedtls_x509write_csr_free() crashed when called on an unitialized mbedtls_x509write_csr struct. This moves mbedtls_x509write_csr_init before calling USE_PSA_INIT(), which could probably fail, and uses the same flow in x509_csr_check() and x509_csr_check_opaque(). Signed-off-by: Neil Armstrong <[email protected]>
- Loading branch information