• R
    fix getaddrinfo to accept port 0 (zero) · 4b49060d
    Rich Felker 提交于
    new behavior can be summarized as:
    inputs that parse completely as a decimal number are treated as one,
    and rejected only if the result is out of 16-bit range.
    inputs that do not parse as a decimal number (where strtoul leaves
    anything left over in the input) are searched in /etc/services.
    4b49060d
getaddrinfo.c 6.5 KB