mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
revert error message assignment for older versions
as errstr is only available since version > 2.2
This commit is contained in:
committed by
Felipe Zimmerle
parent
e7f029b55a
commit
fb3bbf37e8
@@ -1150,7 +1150,7 @@ static void hook_error_log(const char *file, int line, int level, apr_status_t s
|
||||
em->line = line;
|
||||
em->level = level;
|
||||
em->status = status;
|
||||
em->message = apr_pstrdup(msr->mp, errstr);
|
||||
if (fmt != NULL) em->message = apr_pstrdup(msr->mp, fmt);
|
||||
#endif
|
||||
/* Remove \n from the end of the message */
|
||||
if (em->message != NULL) {
|
||||
|
Reference in New Issue
Block a user