]> granicus.if.org Git - php/commitdiff
MF53
authorStanislav Malyshev <stas@php.net>
Tue, 12 Jul 2011 04:58:55 +0000 (04:58 +0000)
committerStanislav Malyshev <stas@php.net>
Tue, 12 Jul 2011 04:58:55 +0000 (04:58 +0000)
sapi/litespeed/lsapilib.c

index 3c3373ac7ebd957163d7923444466bcd4b259d9b..7d0ea27fd7668f5c618124e08eec3630ff1d7f8b 100644 (file)
@@ -1442,7 +1442,7 @@ int LSAPI_ParseSockAddr( const char * pBind, struct sockaddr * pAddr )
         return -1;
     }
 
-    while( isspace( *p ) ) {
+    while( isspace( *pBind ) ) {
         ++pBind;
     }
 
@@ -1498,7 +1498,7 @@ int LSAPI_ParseSockAddr( const char * pBind, struct sockaddr * pAddr )
     }
         
     port = atoi( pEnd );
-    if (( port <= 0 )||( port > 655535 )) {
+    if (( port <= 0 )||( port > 65535 )) {
         return -1;
     }
     if ( doAddrInfo ) {