Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/lavabit/magma.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjpadkins <jacobpadkins@gmail.com>2017-03-23 15:50:19 +0300
committerjpadkins <jacobpadkins@gmail.com>2017-03-23 15:50:19 +0300
commitf611e8a10914da542ec0a2818f504fe6b9f35fb1 (patch)
tree368a5478491484d7d3d7b6e4ace46467ad2960c0 /check/magma/servers/http/http_check_network.c
parentc0675bbc5e8f1d455c1b5be795f7ec6d92c138ec (diff)
Dirty Commit: troubleshooting imap refactor
Diffstat (limited to 'check/magma/servers/http/http_check_network.c')
-rw-r--r--check/magma/servers/http/http_check_network.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/check/magma/servers/http/http_check_network.c b/check/magma/servers/http/http_check_network.c
index 496e86c4..9ea10fc4 100644
--- a/check/magma/servers/http/http_check_network.c
+++ b/check/magma/servers/http/http_check_network.c
@@ -90,12 +90,13 @@ bool_t check_http_network_basic_sthread(stringer_t *errmsg, uint32_t port, bool_
else if (client_print(client, "GET / HTTP/1.1\r\nHost: localhost\r\n\r\n") != 35 || client_status(client) != 1 ||
!(content_length = check_http_content_length_get(client, errmsg))) {
- if (!errmsg) st_sprint(errmsg, "Failed to return a valid GET response.");
+ if (st_empty(errmsg)) st_sprint(errmsg, "Failed to return a valid GET response.");
return false;
}
// Test the response.
else if (check_http_content_length_test(client, content_length, errmsg)) {
- if (!errmsg) st_sprint(errmsg, "The content length and actual body length of the GET response did not match.");
+
+ if (st_empty(errmsg)) st_sprint(errmsg, "The content length and actual body length of the GET response did not match.");
return false;
}