summaryrefslogtreecommitdiffstats
path: root/support/misc/tcpwrapper.c
diff options
context:
space:
mode:
authorSten Spans <sten@blinkenlights.nl>2008-05-05 14:04:58 -0400
committerSteve Dickson <steved@redhat.com>2008-05-05 14:04:58 -0400
commitad1fc3feae447685a8ec8c7db0ad913fe3c4de5c (patch)
tree8e46857087fd7d97db2085377a6ee3c66be4b7d7 /support/misc/tcpwrapper.c
parent697e28939b7d0a3e0ffe3b6bd516213a55f5a063 (diff)
downloadnfs-utils-ad1fc3feae447685a8ec8c7db0ad913fe3c4de5c.tar.gz
nfs-utils-ad1fc3feae447685a8ec8c7db0ad913fe3c4de5c.tar.xz
nfs-utils-ad1fc3feae447685a8ec8c7db0ad913fe3c4de5c.zip
Fixed arguments to the hosts_ctl() call in the good_client() routine
used in the tcpwrapper support. Signe-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/misc/tcpwrapper.c')
-rw-r--r--support/misc/tcpwrapper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/support/misc/tcpwrapper.c b/support/misc/tcpwrapper.c
index 0cc9335..e4f453b 100644
--- a/support/misc/tcpwrapper.c
+++ b/support/misc/tcpwrapper.c
@@ -125,12 +125,12 @@ struct sockaddr_in *addr;
return 0;
/* Check the official name first. */
- if (hosts_ctl(daemon, "", hp->h_name, ""))
+ if (hosts_ctl(daemon, hp->h_name, "", ""))
return 1;
/* Check aliases. */
for (sp = hp->h_aliases; *sp ; sp++) {
- if (hosts_ctl(daemon, "", *sp, ""))
+ if (hosts_ctl(daemon, *sp, "", ""))
return 1;
}