Skip to content

Commit 2171ec5

Browse files
committed
Initialize hostname length
1 parent 249af34 commit 2171ec5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ngx_http_modsecurity_rewrite.c

+1
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ ngx_http_modsecurity_rewrite_handler(ngx_http_request_t *r)
8989
#if defined(MODSECURITY_CHECK_VERSION)
9090
#if MODSECURITY_VERSION_NUM >= 30130100
9191
ngx_str_t hostname;
92+
hostname.len = 0;
9293
// first check if Nginx received a Host header and it's usable
9394
// (i.e. not empty)
9495
// if yes, we can use that

0 commit comments

Comments
 (0)