|
Lines 75-81
Link Here
|
| 75 |
memset(&hints, 0, sizeof(hints)); |
75 |
memset(&hints, 0, sizeof(hints)); |
| 76 |
hints.ai_socktype = SOCK_DGRAM; /*dummy*/ |
76 |
hints.ai_socktype = SOCK_DGRAM; /*dummy*/ |
| 77 |
hints.ai_flags = AI_NUMERICHOST; |
77 |
hints.ai_flags = AI_NUMERICHOST; |
| 78 |
if (getaddrinfo(name, "0", &hints, &ai) == 0) { |
78 |
if (getaddrinfo(name, NULL, &hints, &ai) == 0) { |
| 79 |
logit("Nasty PTR record \"%s\" is set up for %s, ignoring", |
79 |
logit("Nasty PTR record \"%s\" is set up for %s, ignoring", |
| 80 |
name, ntop); |
80 |
name, ntop); |
| 81 |
freeaddrinfo(ai); |
81 |
freeaddrinfo(ai); |