From: Stanislav Malyshev Date: Tue, 12 Jul 2011 04:58:55 +0000 (+0000) Subject: MF53 X-Git-Tag: php-5.4.0alpha2~15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4a5959d113070ba761875323e1f7dd6c2e012ca8;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 ) {