Browse Source

fix socket address parsing code

pull/12/head
George Wang 15 years ago
parent
commit
0bcbaa1750
  1. 4
      sapi/litespeed/lsapilib.c

4
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 ) {

Loading…
Cancel
Save