version 1.62, 2007/12/27 14:22:08 |
version 1.63, 2008/06/12 00:03:49 |
|
|
memset(&hints, 0, sizeof(hints)); |
memset(&hints, 0, sizeof(hints)); |
hints.ai_socktype = SOCK_DGRAM; /*dummy*/ |
hints.ai_socktype = SOCK_DGRAM; /*dummy*/ |
hints.ai_flags = AI_NUMERICHOST; |
hints.ai_flags = AI_NUMERICHOST; |
if (getaddrinfo(name, "0", &hints, &ai) == 0) { |
if (getaddrinfo(name, NULL, &hints, &ai) == 0) { |
logit("Nasty PTR record \"%s\" is set up for %s, ignoring", |
logit("Nasty PTR record \"%s\" is set up for %s, ignoring", |
name, ntop); |
name, ntop); |
freeaddrinfo(ai); |
freeaddrinfo(ai); |