]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Fixed arguments to the hosts_ctl() call in the good_client() routine
authorSten Spans <sten@blinkenlights.nl>
Mon, 5 May 2008 18:04:58 +0000 (14:04 -0400)
committerSteve Dickson <steved@redhat.com>
Mon, 5 May 2008 18:04:58 +0000 (14:04 -0400)
used in the tcpwrapper support.

Signe-off-by: Steve Dickson <steved@redhat.com>
support/misc/tcpwrapper.c

index 0cc93357086941b799bfeceb6bb85896c0407d05..e4f453bc93c6a95ca2de560b865037064751ae54 100644 (file)
@@ -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;
    }