aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Andreas Baumann <mail@andreasbaumann.cc> 2017-11-02 16:46:20 +0100
committerGravatar Sven Nierlein <sven@nierlein.de> 2018-10-22 16:30:31 +0200
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 2f583052..db1e9c5a 100644
--- a/plugins/check_curl.c
+++ b/plugins/check_curl.c
@@ -1320,10 +1320,10 @@ process_arguments (int argc, char **argv)
#ifdef LIBCURL_FEATURE_SSL
enable_ssl:
use_ssl = TRUE;
- /* ssl_version initialized to CURL_SSLVERSION_TLSv1_0 as a default.
+ /* ssl_version initialized to CURL_SSLVERSION_DEFAULT as a default.
* Only set if it's non-zero. This helps when we include multiple
* parameters, like -S and -C combinations */
- ssl_version = CURL_SSLVERSION_TLSv1_0;
+ ssl_version = CURL_SSLVERSION_DEFAULT;
if (c=='S' && optarg != NULL) {
char *plus_ptr = strchr(optarg, '+');
if (plus_ptr) {