diff options
author | Martin Pool <mbp@samba.org> | 2002-01-24 08:52:28 +0000 |
---|---|---|
committer | Martin Pool <mbp@samba.org> | 2002-01-24 08:52:28 +0000 |
commit | bbc09ffba9ffc29381e72249df5375e60e9d5463 (patch) | |
tree | 3517c7cdc98c7f133ec34f44423f264ee8536b9c | |
parent | a4677968cf0f439b58180ea72d5d53ad464ef832 (diff) | |
download | rsync-bbc09ffba9ffc29381e72249df5375e60e9d5463.tar.gz |
When doing a name->addr translation to check for spoofing, give the
resolver the address family of the original address as a hint, so that
we're more likely to find the correct A or AAAA record.,
-rw-r--r-- | socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -718,7 +718,7 @@ int check_name(int fd, memset(&hints, 0, sizeof(hints)); hints.ai_family = PF_UNSPEC; - hints.ai_flags = AI_CANONNAME; + hints.ai_flags = get_sockaddr_family(ss); hints.ai_socktype = SOCK_STREAM; error = getaddrinfo(name_buf, port_buf, &hints, &res0); if (error) { |