From b590a2082304cec3a4d3c6de2c226eeaf5205ed5 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Tue, 6 Sep 2016 10:50:23 +0200 Subject: fixed disabled of host verification with --no-verify-host --- src/check_curl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) */ -- cgit v1.2.3-54-g00ecf