fix socket address parsing code

This commit is contained in:
George Wang 2011-06-08 16:51:59 +00:00
parent 9277da7d9d
commit 0bcbaa1750

View File

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