mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 03:34:29 +03:00
Fixed assert() usage:
- added some missing - removed some invalid - removed some that were not relevant in the context of the current function, when done in a called function
This commit is contained in:
@@ -140,6 +140,8 @@ int xml_complete(modsec_rec *msr, char **error_msg) {
|
||||
* Frees the resources used for XML parsing.
|
||||
*/
|
||||
apr_status_t xml_cleanup(modsec_rec *msr) {
|
||||
assert(msr != NULL);
|
||||
assert(msr->xml != NULL);
|
||||
if (msr->xml->parsing_ctx != NULL) {
|
||||
if (msr->xml->parsing_ctx->myDoc) {
|
||||
xmlFreeDoc(msr->xml->parsing_ctx->myDoc);
|
||||
|
Reference in New Issue
Block a user