diff options
| author | George Wang <gwang@php.net> | 2011-06-08 16:51:59 +0000 |
|---|---|---|
| committer | George Wang <gwang@php.net> | 2011-06-08 16:51:59 +0000 |
| commit | 0bcbaa17503887cfa8474b797cfdd6d7bb68f017 (patch) | |
| tree | 87e67377bd5ef92ce55132b2a75a70d26749bb0d | |
| parent | 9277da7d9db0cc4b226c3983b374def153b8a38b (diff) | |
| download | php-git-0bcbaa17503887cfa8474b797cfdd6d7bb68f017.tar.gz | |
fix socket address parsing code
| -rw-r--r-- | sapi/litespeed/lsapilib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sapi/litespeed/lsapilib.c b/sapi/litespeed/lsapilib.c index ea79a9fe3c..a3297346d6 100644 --- a/sapi/litespeed/lsapilib.c +++ b/sapi/litespeed/lsapilib.c @@ -1453,7 +1453,7 @@ int LSAPI_ParseSockAddr( const char * pBind, struct sockaddr * pAddr ) return -1; } - while( isspace( *p ) ) { + while( isspace( *pBind ) ) { ++pBind; } @@ -1509,7 +1509,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 ) { |
