1
0
mirror of synced 2025-01-29 19:17:28 +01:00

fix: Crash on exit due to bug in libromfs

This commit is contained in:
WerWolv 2022-01-15 02:46:24 +01:00
parent 23190e1f87
commit 012b82c395
2 changed files with 3 additions and 3 deletions

2
external/libromfs vendored

@ -1 +1 @@
Subproject commit 5b79535ee0fa53da7ffbaef4f37842651f7d2e65
Subproject commit 0842d22deb13e036eb1fb15df368b6cad552abfe

View File

@ -56,8 +56,8 @@ namespace hex {
static mbedtls_x509_crt crt;
mbedtls_x509_crt_init(&crt);
auto cacert = romfs::get("cacert.pem");
mbedtls_x509_crt_parse(&crt, reinterpret_cast<const u8*>(cacert.data()), cacert.size() + 1);
auto cacert = romfs::get("cacert.pem").string();
mbedtls_x509_crt_parse(&crt, reinterpret_cast<const u8*>(cacert.data()), cacert.size());
mbedtls_ssl_conf_ca_chain(cfg, &crt, nullptr);