mirror of
https://github.com/roytam1/mozilla45esr.git
synced 2026-05-26 15:39:48 +00:00
network: fix temporary variable type, this should fix not able to access port numbers that is larger than 32767.
This commit is contained in:
@@ -1182,7 +1182,7 @@ nsIOService::SetConnectivityInternal(bool aConnectivity)
|
||||
NS_IMETHODIMP
|
||||
nsIOService::AllowPort(int32_t inPort, const char *scheme, bool *_retval)
|
||||
{
|
||||
int16_t port = inPort;
|
||||
int32_t port = inPort;
|
||||
if (port == -1) {
|
||||
*_retval = true;
|
||||
return NS_OK;
|
||||
|
||||
Reference in New Issue
Block a user