gwang                                    Wed, 08 Jun 2011 16:51:59 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=311935

Log:
fix socket address parsing code

Changed paths:
    U   php/php-src/branches/PHP_5_3/sapi/litespeed/lsapilib.c

Modified: php/php-src/branches/PHP_5_3/sapi/litespeed/lsapilib.c
===================================================================
--- php/php-src/branches/PHP_5_3/sapi/litespeed/lsapilib.c      2011-06-08 
16:46:31 UTC (rev 311934)
+++ php/php-src/branches/PHP_5_3/sapi/litespeed/lsapilib.c      2011-06-08 
16:51:59 UTC (rev 311935)
@@ -1453,7 +1453,7 @@
         return -1;
     }

-    while( isspace( *p ) ) {
+    while( isspace( *pBind ) ) {
         ++pBind;
     }

@@ -1509,7 +1509,7 @@
     }

     port = atoi( pEnd );
-    if (( port <= 0 )||( port > 655535 )) {
+    if (( port <= 0 )||( port > 65535 )) {
         return -1;
     }
     if ( doAddrInfo ) {

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

Reply via email to