Skip to content

Commit 5175214

Browse files
author
Felipe Zimmerle
committed
Changes log callback to reflect latest changes on libmod
1 parent 134bd36 commit 5175214

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/ngx_http_modsecurity_common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ int ngx_http_modescurity_store_ctx_header(ngx_http_request_t *r, ngx_str_t *name
105105
#endif
106106

107107
/* ngx_http_modsecurity_log.c */
108-
void ngx_http_modsecurity_log(void *log, const char* msg);
108+
void ngx_http_modsecurity_log(void *log, const void* data);
109109
ngx_int_t ngx_http_modsecurity_log_handler(ngx_http_request_t *r);
110110

111111
/* ngx_http_modsecurity_pre_access.c */

src/ngx_http_modsecurity_log.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,13 @@
2222

2323

2424
void
25-
ngx_http_modsecurity_log(void *log, const char* msg)
25+
ngx_http_modsecurity_log(void *log, const void* data)
2626
{
27+
const char *msg;
2728
if (log == NULL) {
2829
return;
2930
}
31+
msg = (const char *) data;
3032

3133
ngx_log_error(NGX_LOG_INFO, (ngx_log_t *)log, 0, "%s", msg);
3234
}

0 commit comments

Comments
 (0)