Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
When doing a name->addr translation to check for spoofing, give the
[rsync/rsync.git]
/
socket.c
diff --git
a/socket.c
b/socket.c
index
76644cc
..
efdeecf
100644
(file)
--- a/
socket.c
+++ b/
socket.c
@@
-718,7
+718,7
@@
int check_name(int fd,
memset(&hints, 0, sizeof(hints));
hints.ai_family = PF_UNSPEC;
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) {
hints.ai_socktype = SOCK_STREAM;
error = getaddrinfo(name_buf, port_buf, &hints, &res0);
if (error) {