We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fc8e558 + dfbdaf8 commit 4136c4cCopy full SHA for 4136c4c
apache2/msc_xml.c
@@ -140,6 +140,9 @@ apr_status_t xml_cleanup(modsec_rec *msr) {
140
if (msr->xml->parsing_ctx != NULL) {
141
if (msr->xml->parsing_ctx->myDoc) {
142
xmlFreeDoc(msr->xml->parsing_ctx->myDoc);
143
+ if (msr->xml->parsing_ctx->myDoc == msr->xml->doc) {
144
+ msr->xml->doc = NULL;
145
+ }
146
}
147
xmlFreeParserCtxt(msr->xml->parsing_ctx);
148
msr->xml->parsing_ctx = NULL;
0 commit comments