Skip to content

dns: throw a TypeError in lookupService with invalid port

Previously, port was assumed to be a number and would cause an abort in cares_wrap. This change throws a TypeError if port is not a number before we actually hit C++.

Fixes: https://github.com/nodejs/node/issues/4837

Merge request reports

Loading