From: Stanislav Malyshev Date: Tue, 12 Jul 2011 04:58:55 +0000 (+0000) Subject: MF53 X-Git-Tag: php-5.5.0alpha1~1799 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=23ad275e24fbc9b49af65fe1030eab87a9c13c3a;p=php MF53 --- diff --git a/sapi/litespeed/lsapilib.c b/sapi/litespeed/lsapilib.c index 3c3373ac7e..7d0ea27fd7 100644 --- a/sapi/litespeed/lsapilib.c +++ b/sapi/litespeed/lsapilib.c @@ -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 ) {