Skip to content

Commit b4adf54

Browse files
committed
TLSSocketWrapper: fix stupid bug
1 parent aaa02e4 commit b4adf54

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

features/netsocket/TLSSocketWrapper.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,11 @@ nsapi_error_t TLSSocketWrapper::set_root_ca_cert(const void *root_ca, size_t len
107107
#if defined(MBEDTLS_FS_IO)
108108
case 0:
109109
ret = mbedtls_x509_crt_parse_path(crt, static_cast<const char *>(root_ca));
110+
break;
110111
#endif
111112
default:
112113
ret = mbedtls_x509_crt_parse(crt, static_cast<const unsigned char *>(root_ca), len);
114+
break;
113115
}
114116
if (ret != 0) {
115117
print_mbedtls_error("mbedtls_x509_crt_parse", ret);

0 commit comments

Comments
 (0)