fix off by one in dhs for getaddrinfo()