Wrong setting when verifyHost is false.
authorScott Cantor <cantor.2@osu.edu>
Wed, 4 Feb 2009 20:11:23 +0000 (20:11 +0000)
committerScott Cantor <cantor.2@osu.edu>
Wed, 4 Feb 2009 20:11:23 +0000 (20:11 +0000)
xmltooling/util/CurlURLInputStream.cpp

index 59ad097..7b84e91 100644 (file)
@@ -166,7 +166,7 @@ void CurlURLInputStream::init(const DOMElement* e)
     if (e) {
         const XMLCh* flag = e->getAttributeNS(NULL, verifyHost);
         if (flag && (*flag == chLatin_f || *flag == chDigit_0))
-            curl_easy_setopt(fEasy, CURLOPT_SSL_VERIFYHOST, 2);
+            curl_easy_setopt(fEasy, CURLOPT_SSL_VERIFYHOST, 0);
 
         // Process TransportOption elements.
         bool success;