mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 11:16:33 +03:00
Fixes for Parfait errors - mostly unhandled NULL pointer dereference and data type mismatch
This commit is contained in:
committed by
Felipe Zimmerle
parent
5f996d45f0
commit
62a6f228f8
@@ -1038,7 +1038,7 @@ static void hook_error_log(const char *file, int line, int level, apr_status_t s
|
||||
#else
|
||||
msr = create_tx_context((request_rec *)r);
|
||||
#endif
|
||||
if (msr->txcfg->debuglog_level >= 9) {
|
||||
if (msr != NULL && msr->txcfg->debuglog_level >= 9) {
|
||||
if (msr == NULL) {
|
||||
msr_log(msr, 9, "Failed to create context after request failure.");
|
||||
}
|
||||
|
Reference in New Issue
Block a user