mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
fix socket address parsing code
This commit is contained in:
parent
9277da7d9d
commit
0bcbaa1750
@ -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…
Reference in New Issue
Block a user