network: fix temporary variable type, this should fix not able to access port numbers that is larger than 32767.

This commit is contained in:
2021-11-04 14:28:51 +08:00
parent f433ba88d6
commit b844aa6d9d
+1 -1
View File
@@ -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;