pajoye          Thu Dec 11 00:15:05 2008 UTC

  Modified files:              
    /php-src/sapi/cgi   fastcgi.c 
  Log:
  - ws
  
http://cvs.php.net/viewvc.cgi/php-src/sapi/cgi/fastcgi.c?r1=1.50&r2=1.51&diff_format=u
Index: php-src/sapi/cgi/fastcgi.c
diff -u php-src/sapi/cgi/fastcgi.c:1.50 php-src/sapi/cgi/fastcgi.c:1.51
--- php-src/sapi/cgi/fastcgi.c:1.50     Sun Dec  7 10:54:16 2008
+++ php-src/sapi/cgi/fastcgi.c  Thu Dec 11 00:15:05 2008
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: fastcgi.c,v 1.50 2008/12/07 10:54:16 mattwil Exp $ */
+/* $Id: fastcgi.c,v 1.51 2008/12/11 00:15:05 pajoye Exp $ */
 
 #include "php.h"
 #include "fastcgi.h"
@@ -456,35 +456,35 @@
        if (!tcp) {
                chmod(path, 0777);
        } else {
-           char *ip = getenv("FCGI_WEB_SERVER_ADDRS");
-           char *cur, *end;
-           int n;
-           
-           if (ip) {
-               ip = strdup(ip);
-               cur = ip;
-               n = 0;
-               while (*cur) {
-                       if (*cur == ',') n++;
-                       cur++;
-               }
-               allowed_clients = malloc(sizeof(in_addr_t) * (n+2));
-               n = 0;
-               cur = ip;
-               while (cur) {
-                       end = strchr(cur, ',');
-                       if (end) {
-                               *end = 0;
-                               end++;
-                       }
-                       allowed_clients[n] = inet_addr(cur);
-                       if (allowed_clients[n] == INADDR_NONE) {
+                       char *ip = getenv("FCGI_WEB_SERVER_ADDRS");
+                       char *cur, *end;
+                       int n;
+                       
+                       if (ip) {
+                               ip = strdup(ip);
+                               cur = ip;
+                               n = 0;
+                               while (*cur) {
+                                       if (*cur == ',') n++;
+                                       cur++;
+                               }
+                               allowed_clients = malloc(sizeof(in_addr_t) * 
(n+2));
+                               n = 0;
+                               cur = ip;
+                               while (cur) {
+                                       end = strchr(cur, ',');
+                                       if (end) {
+                                               *end = 0;
+                                               end++;
+                                       }
+                                       allowed_clients[n] = inet_addr(cur);
+                                       if (allowed_clients[n] == INADDR_NONE) {
                                        fprintf(stderr, "Wrong IP address '%s' 
in FCGI_WEB_SERVER_ADDRS\n", cur);
-                       }
-                       n++;
-                       cur = end;
-               }
-               allowed_clients[n] = INADDR_NONE;
+                                       }
+                                       n++;
+                                       cur = end;
+                               }
+                               allowed_clients[n] = INADDR_NONE;
                        free(ip);
                }
        }



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to