diff options
author | Remi Collet <remi@php.net> | 2014-11-20 15:14:34 +0100 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2014-11-20 15:14:34 +0100 |
commit | 5c6ccb2d8f564ddfa3fff267b776036a0539b3b0 (patch) | |
tree | 841fca0e5643078494ae49ef1ada003b23d2492b | |
parent | 7ef559ff8038807156b01408bd215af7983adc5d (diff) | |
download | php-git-5c6ccb2d8f564ddfa3fff267b776036a0539b3b0.tar.gz |
Fix bug #68463 listen.allowed_clients can silently result in no allowed access
Add a "There are no allowed addresses for this pool"
-rw-r--r-- | sapi/fpm/fpm/fastcgi.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sapi/fpm/fpm/fastcgi.c b/sapi/fpm/fpm/fastcgi.c index 36e37b79d3..d2764a59b7 100644 --- a/sapi/fpm/fpm/fastcgi.c +++ b/sapi/fpm/fpm/fastcgi.c @@ -280,6 +280,10 @@ void fcgi_set_allowed_clients(char *ip) } allowed_clients[n].sa.sa_family = 0; free(ip); + if (!n) { + zlog(ZLOG_ERROR, "There are no allowed addresses for this pool"); + /* don't clear allowed_clients as it will create an "open for all" security issue */ + } } } |