mirror of
git://anongit.mindrot.org/openssh.git
synced 2025-02-16 22:06:55 +00:00
Put AI_NUMERICHOST back where it belongs.
This commit is contained in:
parent
10eac0cf8f
commit
0f68486a76
@ -93,7 +93,7 @@ get_remote_hostname(int socket, int use_dns)
|
|||||||
*/
|
*/
|
||||||
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 = NI_NUMERICHOST;
|
hints.ai_flags = AI_NUMERICHOST;
|
||||||
if (getaddrinfo(name, "0", &hints, &ai) == 0) {
|
if (getaddrinfo(name, "0", &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);
|
||||||
|
Loading…
Reference in New Issue
Block a user