Edit

IABSD.fr/src/usr.sbin/snmpd

Branch :

  • Show log

    Commit

  • Author : martijn
    Date : 2021-11-21 13:33:53
    Hash : a7a73940
    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@