From: Xinchen Hui Date: Sun, 24 May 2015 06:21:04 +0000 (+0800) Subject: fcgi_is_allowed should not log error X-Git-Tag: PRE_PHP7_NSAPI_REMOVAL~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=231f059d8c6b00c5c87ac10c58c4612601a60ab7;p=php fcgi_is_allowed should not log error --- 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;