diff --git a/plugins/check_curl.c b/plugins/check_curl.c index e4f93f34..3f44c86b 100644 --- a/plugins/check_curl.c +++ b/plugins/check_curl.c @@ -276,11 +276,12 @@ mp_subcheck check_http(const check_curl_config config, check_curl_working_state /* Custom handling for timeouts, state might be set to non CRITICAL */ if (res == CURLE_OPERATION_TIMEDOUT) { xasprintf(&sc_curl.output, _("cURL returned %d - %s"), res, - errbuf[0] ? errbuf : curl_easy_strerror(res)); + errbuf[0] ? errbuf : curl_easy_strerror(res)); sc_curl = mp_set_subcheck_state(sc_curl, config.on_timeout_result_state); } else { - xasprintf(&sc_curl.output, _("Error while performing connection: cURL returned %d - %s"), - res, errbuf[0] ? errbuf : curl_easy_strerror(res)); + xasprintf(&sc_curl.output, + _("Error while performing connection: cURL returned %d - %s"), res, + errbuf[0] ? errbuf : curl_easy_strerror(res)); sc_curl = mp_set_subcheck_state(sc_curl, STATE_CRITICAL); } mp_add_subcheck_to_subcheck(&sc_result, sc_curl);