summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-11-02 16:46:20 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2017-11-02 16:46:20 +0100
commit7a17aa3e91fc2f5faa7e60fa1618eb2a0d2cf85b (patch)
treec5f67c41fb4a3ffeb1df51ef8d55c7049049901a
parent8164ce46fb1e4c9deceb5fe351e6c91fb09ca2cf (diff)
downloadmonitoring-plugins-7a17aa3e91fc2f5faa7e60fa1618eb2a0d2cf85b.tar.gz
set ssl_version to CURL_SSLVERSION_DEFAULT and not CURL_SSLVERSION_TLSv1_0
(since curl 7.56.1 we get an illegal argument error otherwise)
-rw-r--r--plugins/check_curl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_curl.c b/plugins/check_curl.c
index 2f583052..db1e9c5a 100644
--- a/plugins/check_curl.c
+++ b/plugins/check_curl.c
@@ -1320,10 +1320,10 @@ process_arguments (int argc, char **argv)
1320#ifdef LIBCURL_FEATURE_SSL 1320#ifdef LIBCURL_FEATURE_SSL
1321 enable_ssl: 1321 enable_ssl:
1322 use_ssl = TRUE; 1322 use_ssl = TRUE;
1323 /* ssl_version initialized to CURL_SSLVERSION_TLSv1_0 as a default. 1323 /* ssl_version initialized to CURL_SSLVERSION_DEFAULT as a default.
1324 * Only set if it's non-zero. This helps when we include multiple 1324 * Only set if it's non-zero. This helps when we include multiple
1325 * parameters, like -S and -C combinations */ 1325 * parameters, like -S and -C combinations */
1326 ssl_version = CURL_SSLVERSION_TLSv1_0; 1326 ssl_version = CURL_SSLVERSION_DEFAULT;
1327 if (c=='S' && optarg != NULL) { 1327 if (c=='S' && optarg != NULL) {
1328 char *plus_ptr = strchr(optarg, '+'); 1328 char *plus_ptr = strchr(optarg, '+');
1329 if (plus_ptr) { 1329 if (plus_ptr) {