Skip to content

Commit

Permalink
Don't limit port number resolution on FreeBSD
Browse files Browse the repository at this point in the history
- there's no IPPORT_USERRESERVED
- /etc/services contains quite many entries for ports above 5000.
  • Loading branch information
AMDmi3 committed May 29, 2015
1 parent 1fff53a commit 0d07d08
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tcp.c
Expand Up @@ -118,8 +118,10 @@ tcp_lookup(port)

if (nflag)
se = NULL;
#if !defined(__FreeBSD__)
else if (port > IPPORT_USERRESERVED)
se = NULL;
#endif
else {
#if HAVE_GETSERVBYPORT
display_message("resolving tcp port %u", port);
Expand Down

0 comments on commit 0d07d08

Please sign in to comment.