File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
v3.x.y - YYYY-MMM-DD (to be released)
2
2
-------------------------------------
3
3
4
+ - Fix: validateDTD compile fails if when libxml2 not installed
5
+ [Issue #3014 - @zangobot, @martinhsv]
4
6
- Fix memory leak of validateDTD's dtd object
5
7
[Issue #3008 - @martinhsv, @zimmerle]
6
8
- Fix memory leaks in ValidateSchema
Original file line number Diff line number Diff line change 33
33
namespace modsecurity {
34
34
namespace operators {
35
35
36
+ #ifdef WITH_LIBXML2
36
37
class XmlDtdPtrManager {
37
38
public:
38
39
/* * @ingroup ModSecurity_Operator */
39
40
explicit XmlDtdPtrManager (xmlDtdPtr dtd)
40
41
: m_dtd(dtd) { }
41
42
~XmlDtdPtrManager () {
42
- #ifdef WITH_LIBXML2
43
43
if (m_dtd != NULL ) {
44
44
xmlFreeDtd (m_dtd);
45
45
m_dtd = NULL ;
46
46
}
47
- #endif
48
47
}
49
48
xmlDtdPtr get () const {return m_dtd;}
50
49
private:
51
50
xmlDtdPtr m_dtd; // The resource being managed
52
51
};
52
+ #endif
53
53
54
54
class ValidateDTD : public Operator {
55
55
public:
You can’t perform that action at this time.
0 commit comments