summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2015-05-24 14:21:04 +0800
committerXinchen Hui <laruence@gmail.com>2015-05-24 14:21:04 +0800
commit231f059d8c6b00c5c87ac10c58c4612601a60ab7 (patch)
tree15734de7a7f7a927a1c6f87769e15f33f5787a4d
parent9dbf8794bbf5cd08ef0b7fc2a016fc837d13a6d3 (diff)
downloadphp-git-231f059d8c6b00c5c87ac10c58c4612601a60ab7.tar.gz
fcgi_is_allowed should not log error
-rw-r--r--main/fastcgi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/fastcgi.c b/main/fastcgi.c
index 0cbe01ab36..675b9a88b0 100644
--- a/main/fastcgi.c
+++ b/main/fastcgi.c
@@ -1239,7 +1239,6 @@ static int fcgi_is_allowed() {
}
#endif
- fcgi_log(FCGI_ERROR, "Connection disallowed: IP address '%s' has been dropped.", fcgi_get_last_client_ip());
return 0;
}
@@ -1296,6 +1295,7 @@ FCGI_API int fcgi_accept_request(fcgi_request *req)
client_sa = sa;
if (req->fd >= 0 && !fcgi_is_allowed()) {
+ fcgi_log(FCGI_ERROR, "Connection disallowed: IP address '%s' has been dropped.", fcgi_get_last_client_ip());
closesocket(req->fd);
req->fd = -1;
continue;