mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-28 12:30:58 +00:00
fix tests
This commit is contained in:
1 parent
2696c1ff94
commit
735038c98c
2 files changed
+8
-4
No files matched your search
+4
-2
@@ -10613,8 +10613,10 @@ static struct mg_ota_state {
|
||||
static void s_firmware_fn(struct mg_connection *c, int ev, void *ev_data);
|
||||
|
||||
static bool s_tls_init(struct mg_connection *c, const char *url) {
|
||||
struct mg_tls_opts opts = {
|
||||
.ca = mg_str(MG_OTA_TLS_CA), .name = mg_url_host(url)};
|
||||
struct mg_tls_opts opts;
|
||||
memset(&opts, 0, sizeof(opts));
|
||||
opts.ca = mg_str(MG_OTA_TLS_CA);
|
||||
opts.name = mg_url_host(url);
|
||||
if (opts.ca.len == 0) {
|
||||
mg_error(c, "MG_OTA_TLS_CA is not configured");
|
||||
} else {
|
||||
|
||||
@@ -28,8 +28,10 @@ static struct mg_ota_state {
|
||||
static void s_firmware_fn(struct mg_connection *c, int ev, void *ev_data);
|
||||
|
||||
static bool s_tls_init(struct mg_connection *c, const char *url) {
|
||||
struct mg_tls_opts opts = {
|
||||
.ca = mg_str(MG_OTA_TLS_CA), .name = mg_url_host(url)};
|
||||
struct mg_tls_opts opts;
|
||||
memset(&opts, 0, sizeof(opts));
|
||||
opts.ca = mg_str(MG_OTA_TLS_CA);
|
||||
opts.name = mg_url_host(url);
|
||||
if (opts.ca.len == 0) {
|
||||
mg_error(c, "MG_OTA_TLS_CA is not configured");
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user