walters / rpms / nfs-utils

Forked from rpms/nfs-utils 6 years ago
Clone
85ed8ab
commit ad1fc3feae447685a8ec8c7db0ad913fe3c4de5c
85ed8ab
Author: Sten Spans <sten@blinkenlights.nl>
85ed8ab
Date:   Mon May 5 14:04:58 2008 -0400
85ed8ab
85ed8ab
    Fixed arguments to the hosts_ctl() call in the good_client() routine
85ed8ab
    used in the tcpwrapper support.
85ed8ab
    
85ed8ab
    Signe-off-by: Steve Dickson <steved@redhat.com>
85ed8ab
85ed8ab
diff --git a/support/misc/tcpwrapper.c b/support/misc/tcpwrapper.c
85ed8ab
index 0cc9335..e4f453b 100644
85ed8ab
--- a/support/misc/tcpwrapper.c
85ed8ab
+++ b/support/misc/tcpwrapper.c
85ed8ab
@@ -125,12 +125,12 @@ struct sockaddr_in *addr;
85ed8ab
 	   return 0;
85ed8ab
 
85ed8ab
    /* Check the official name first. */
85ed8ab
-   if (hosts_ctl(daemon, "", hp->h_name, ""))
85ed8ab
+   if (hosts_ctl(daemon, hp->h_name, "", ""))
85ed8ab
 	return 1;
85ed8ab
 
85ed8ab
    /* Check aliases. */
85ed8ab
    for (sp = hp->h_aliases; *sp ; sp++) {
85ed8ab
-	if (hosts_ctl(daemon, "", *sp, ""))
85ed8ab
+	if (hosts_ctl(daemon, *sp, "", ""))
85ed8ab
 	    return 1;
85ed8ab
    }
85ed8ab