Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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‎

Lines changed: 1 addition & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /