summaryrefslogtreecommitdiff
path: root/usr/src/cmd/cmd-inet/common/addr_match.c
diff options
context:
space:
mode:
authorjbeck <none@none>2006-11-13 17:49:38 -0800
committerjbeck <none@none>2006-11-13 17:49:38 -0800
commit07070659d3b755175df60ae6860c2b082250982f (patch)
tree73d3d371d969be4c883855a30a8422d6936972fa /usr/src/cmd/cmd-inet/common/addr_match.c
parentb3baaabf8aa0df586f2fbe047c13633d089d9d8e (diff)
downloadillumos-gate-07070659d3b755175df60ae6860c2b082250982f.tar.gz
6491958 rhosts files don't work in certain IPv4/6 address corner cases
Diffstat (limited to 'usr/src/cmd/cmd-inet/common/addr_match.c')
-rw-r--r--usr/src/cmd/cmd-inet/common/addr_match.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/cmd/cmd-inet/common/addr_match.c b/usr/src/cmd/cmd-inet/common/addr_match.c
index 2d05bf5e99..29be900dad 100644
--- a/usr/src/cmd/cmd-inet/common/addr_match.c
+++ b/usr/src/cmd/cmd-inet/common/addr_match.c
@@ -102,7 +102,7 @@ check_address(const char *prog,
boolean_t match_found = B_FALSE;
(void) memset(&hints, 0, sizeof (hints));
- hints.ai_flags = AI_CANONNAME|AI_V4MAPPED|AI_ADDRCONFIG;
+ hints.ai_flags = AI_CANONNAME|AI_V4MAPPED|AI_ADDRCONFIG|AI_ALL;
hints.ai_family = fromp->ss_family;
if (getaddrinfo(hostname, NULL, &hints, &res) == 0) {
match_found = find_match(res, fromp, sin, sin6);