com php-src: fcgi_is_allowed should not log error : main/fastcgi.c

From: Date: Sun, 24 May 2015 06:21:04 +0000
Subject: com php-src: fcgi_is_allowed should not log error : main/fastcgi.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-86953@lists.php.net to get a copy of this message
Commit: 231f059d8c6b00c5c87ac10c58c4612601a60ab7 Author: Xinchen Hui <laruence@gmail.com> Sun, 24 May 2015 14:21:04 +0800 Parents: 9dbf8794bbf5cd08ef0b7fc2a016fc837d13a6d3 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=231f059d8c6b00c5c87ac10c58c4612601a60ab7 Log: fcgi_is_allowed should not log error Changed paths: M main/fastcgi.c Diff: diff --git a/main/fastcgi.c b/main/fastcgi.c index 0cbe01a..675b9a8 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;

« previous php.cvs (#86953) next »