CVSROOT: /cvs Module name: src Changes by: mart...@cvs.openbsd.org 2021/11/21 06:33:53
Modified files: usr.sbin/snmpd : parse.y Log message: getaddrinfo doesn't resolve numeric hostname in the !AI_NUMERICHOST case if family in resolv.conf is not set to its specific family. e.g. 0.0.0.0 will not resolve if family is set to "family inet6" Fix this by first trying to resolve with AI_NUMERIC set and if EAI_NONAME is returned (it's an actual hostname) retry with an empty ai_flags. bug reported by and OK sthen@