Forgot to check for null callback.
authorScott Cantor <cantor.2@osu.edu>
Mon, 12 Feb 2007 06:39:21 +0000 (06:39 +0000)
committerScott Cantor <cantor.2@osu.edu>
Mon, 12 Feb 2007 06:39:21 +0000 (06:39 +0000)
xmltooling/soap/impl/CURLSOAPTransport.cpp

index 7fa8704..adbecfc 100644 (file)
@@ -520,7 +520,7 @@ CURLcode xmltooling::xml_ssl_ctx_callback(CURL* curl, SSL_CTX* ssl_ctx, void* us
     }
 #endif
         
-    if (!conf->m_ssl_callback(conf, ssl_ctx, conf->m_ssl_userptr))
+    if (conf->m_ssl_callback && !conf->m_ssl_callback(conf, ssl_ctx, conf->m_ssl_userptr))
         return CURLE_SSL_CERTPROBLEM;
         
     return CURLE_OK;