[network] Fix typo in port blocking range check.

This fixes a typo in 5e705bd5059da5b7a39e3a096b7c7f59cb466730
This commit is contained in:
Moonchild 2021-05-12 20:25:55 +00:00 committed by roytam1
commit 98f29e4737

View file

@ -1210,7 +1210,7 @@ nsIOService::AllowPort(int32_t inPort, const char *scheme, bool *_retval)
}
// Ensure the port number is within a valid range
if (port <= 0 || port >= std::numeric_limits<uint16_t>::max()) {
if (port <= 0 || port > std::numeric_limits<uint16_t>::max()) {
*_retval = false;
return NS_OK;
}