CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected] 2025/10/11 09:46:06

Modified files:
        usr.bin/nc     : netcat.c 

Log message:
use strtonum() instead of atoi(), and error out for bad numbers
This generates a host-order number, so the ntohs() for getservbyport()
was wrong, that should always have been htons().  The transform is
the same, but misleading.
ok tb

Reply via email to