We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca9523b commit b1f7940Copy full SHA for b1f7940
ports/raspberrypi/common-hal/ssl/SSLContext.c
@@ -42,7 +42,7 @@ void common_hal_ssl_sslcontext_load_verify_locations(ssl_sslcontext_obj_t *self,
42
self->crt_bundle_attach = NULL;
43
self->use_global_ca_store = false;
44
self->cacert_buf = (const unsigned char *)cadata;
45
- self->cacert_bytes = strlen(cadata) + 1;
+ self->cacert_bytes = *cadata ? strlen(cadata) + 1 : 0;
46
}
47
48
void common_hal_ssl_sslcontext_set_default_verify_paths(ssl_sslcontext_obj_t *self) {
0 commit comments