mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-17 18:05:28 +03:00
Fix compilation issue while xml is disabled
This commit is contained in:
@@ -21,8 +21,10 @@
|
||||
#include <yajl/yajl_tree.h>
|
||||
#include <yajl/yajl_gen.h>
|
||||
#endif
|
||||
#ifdef WITH_LIBXML2
|
||||
#include <libxml/xmlschemas.h>
|
||||
#include <libxml/xpath.h>
|
||||
#endif
|
||||
#ifdef MSC_WITH_CURL
|
||||
#include <curl/curl.h>
|
||||
#endif
|
||||
@@ -78,7 +80,9 @@ ModSecurity::ModSecurity()
|
||||
#ifdef MSC_WITH_CURL
|
||||
curl_global_init(CURL_GLOBAL_ALL);
|
||||
#endif
|
||||
#ifdef WITH_LIBXML2
|
||||
xmlInitParser();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -89,8 +93,9 @@ ModSecurity::~ModSecurity() {
|
||||
#ifdef WITH_GEOIP
|
||||
Utils::GeoLookup::getInstance().cleanUp();
|
||||
#endif
|
||||
#ifdef WITH_LIBXML2
|
||||
xmlCleanupParser();
|
||||
|
||||
#endif
|
||||
delete m_global_collection;
|
||||
delete m_resource_collection;
|
||||
delete m_ip_collection;
|
||||
|
||||
Reference in New Issue
Block a user