From 4a5959d113070ba761875323e1f7dd6c2e012ca8 Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Tue, 12 Jul 2011 04:58:55 +0000 Subject: [PATCH] MF53 --- sapi/litespeed/lsapilib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ) { -- 2.40.0