summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRemi Collet <remi@php.net>2015-01-05 17:33:57 +0100
committerRemi Collet <remi@php.net>2015-01-05 17:33:57 +0100
commit1b6d076244c0f7686fa611f7988247ee26ce58c5 (patch)
treecaec78ae1fe5f3db55c09ed480cc05e389782d12
parentea1c0c56273c10362f33aa3270168f37a26c29d6 (diff)
downloadphp-git-1b6d076244c0f7686fa611f7988247ee26ce58c5.tar.gz
Fix bug #68751 listen.allowed_clients is broken
-rw-r--r--sapi/fpm/fpm/fastcgi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/fpm/fpm/fastcgi.c b/sapi/fpm/fpm/fastcgi.c
index d2764a59b7..5d46913cec 100644
--- a/sapi/fpm/fpm/fastcgi.c
+++ b/sapi/fpm/fpm/fastcgi.c
@@ -258,7 +258,7 @@ void fcgi_set_allowed_clients(char *ip)
cur++;
}
if (allowed_clients) free(allowed_clients);
- allowed_clients = malloc(sizeof(in_addr_t) * (n+2));
+ allowed_clients = malloc(sizeof(sa_t) * (n+2));
n = 0;
cur = ip;
while (cur) {