summaryrefslogtreecommitdiffstats
path: root/plugins/check_curl.c
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-04-18 19:17:38 (GMT)
committerSven Nierlein <sven@nierlein.de>2018-10-22 14:30:31 (GMT)
commitcee5f2777d022cb5333f6155c6bb54c77949225c (patch)
treea4bc9bcd89a6de509e8e2210644fb648817844ed /plugins/check_curl.c
parent304e04a3849e00aa78327eb694e79487a3c8eaac (diff)
downloadmonitoring-plugins-cee5f2777d022cb5333f6155c6bb54c77949225c.tar.gz
small fix and we see CURLOPT_SSL_CTX_FUNCTION does not work on Centos 6?
Diffstat (limited to 'plugins/check_curl.c')
-rw-r--r--plugins/check_curl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_curl.c b/plugins/check_curl.c
index f8c8832..ff79f15 100644
--- a/plugins/check_curl.c
+++ b/plugins/check_curl.c
@@ -248,7 +248,7 @@ handle_curl_option_return_code (CURLcode res, const char* option)
248{ 248{
249 if (res != CURLE_OK) { 249 if (res != CURLE_OK) {
250 snprintf (msg, DEFAULT_BUFFER_SIZE, _("Error while setting cURL option '%s': cURL returned %d - %s"), 250 snprintf (msg, DEFAULT_BUFFER_SIZE, _("Error while setting cURL option '%s': cURL returned %d - %s"),
251 res, curl_easy_strerror(res)); 251 option, res, curl_easy_strerror(res));
252 die (STATE_CRITICAL, "HTTP CRITICAL - %s\n", msg); 252 die (STATE_CRITICAL, "HTTP CRITICAL - %s\n", msg);
253 } 253 }
254} 254}