summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-11-02 15:46:20 (GMT)
committerSven Nierlein <sven@nierlein.de>2018-10-22 14:30:31 (GMT)
commit8120c53f903c684f78df925ae5a6d615f5154058 (patch)
treef3ae9080e05a29b285fe9783a8b436b335273581
parent8a5b49ec36bc9cb4e24bb2ccba208c16066a6b1e (diff)
downloadmonitoring-plugins-8120c53f903c684f78df925ae5a6d615f5154058.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 2f58305..db1e9c5 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) {