closes #650: fix port numbers > 32767

This commit is contained in:
Cameron Kaiser 2021-11-09 10:49:53 -08:00
parent f091debf61
commit 0da0ec9f95
1 changed files with 1 additions and 1 deletions

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;