Forgot to check for null callback.
authorcantor <cantor@de75baf8-a10c-0410-a50a-987c0e22f00f>
Mon, 12 Feb 2007 06:39:21 +0000 (06:39 +0000)
committercantor <cantor@de75baf8-a10c-0410-a50a-987c0e22f00f>
Mon, 12 Feb 2007 06:39:21 +0000 (06:39 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-xmltooling/trunk@252 de75baf8-a10c-0410-a50a-987c0e22f00f

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;