diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2016-09-06 10:50:23 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2016-09-06 10:50:23 +0200 |
commit | b590a2082304cec3a4d3c6de2c226eeaf5205ed5 (patch) | |
tree | aa763968f03bbb68257a3c376245db548f3257ec | |
parent | 1190f64f5fcd49941c96664a81d99b4a605ef4c8 (diff) | |
download | nagios-plugin-curl-b590a2082304cec3a4d3c6de2c226eeaf5205ed5.tar.gz nagios-plugin-curl-b590a2082304cec3a4d3c6de2c226eeaf5205ed5.tar.bz2 |
fixed disabled of host verification with --no-verify-host
-rw-r--r-- | src/check_curl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_curl.c b/src/check_curl.c index 6453993..c014359 100644 --- a/src/check_curl.c +++ b/src/check_curl.c @@ -199,7 +199,7 @@ int main( int argc, char *argv[] ) { /* --no-verify-host: make it an additional option, not as in curl! (SSL) */ if( args_info.no_verify_host_given ) { - curl_easy_setopt( curl, CURLOPT_SSL_VERIFYHOST, 1 ); + curl_easy_setopt( curl, CURLOPT_SSL_VERIFYHOST, 0 ); } /* --cert: client certificate to present to server (SSL) */ |