com php-src: Fix bug #68751 listen.allowed_clients is b roken: sapi/fpm/fpm/fastcgi.c
| From: | Remi Collet | Date: | Mon, 05 Jan 2015 16:33:57 +0000 |
| Subject: | com php-src: Fix bug #68751 listen.allowed_clients is b roken: sapi/fpm/fpm/fastcgi.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-83997@lists.php.net to get a copy of this message | ||
Commit: 1b6d076244c0f7686fa611f7988247ee26ce58c5
Author: Remi Collet <remi@php.net> Mon, 5 Jan 2015 17:33:57 +0100
Parents: ea1c0c56273c10362f33aa3270168f37a26c29d6
Branches: PHP-5.5 PHP-5.6 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1b6d076244c0f7686fa611f7988247ee26ce58c5
Log:
Fix bug #68751 listen.allowed_clients is broken
Bugs:
https://bugs.php.net/68751
Changed paths:
M sapi/fpm/fpm/fastcgi.c
Diff:
diff --git a/sapi/fpm/fpm/fastcgi.c b/sapi/fpm/fpm/fastcgi.c
index d2764a5..5d46913 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) {