From f611e8a10914da542ec0a2818f504fe6b9f35fb1 Mon Sep 17 00:00:00 2001 From: jpadkins Date: Thu, 23 Mar 2017 07:50:19 -0500 Subject: Dirty Commit: troubleshooting imap refactor --- check/magma/servers/http/http_check_network.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'check/magma/servers/http/http_check_network.c') 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; } -- cgit v1.2.3