e615632
diff -up tcp_wrappers_7.6/hosts_access.c.patch15 tcp_wrappers_7.6/hosts_access.c
e615632
--- tcp_wrappers_7.6/hosts_access.c.patch15	2008-08-29 09:45:12.000000000 +0200
e615632
+++ tcp_wrappers_7.6/hosts_access.c	2008-08-29 09:45:12.000000000 +0200
e615632
@@ -127,7 +127,7 @@ struct request_info *request;
26ad4bc
     verdict = setjmp(tcpd_buf);
26ad4bc
     if (verdict != 0)
26ad4bc
 	return (verdict == AC_PERMIT);
26ad4bc
-    if (table_match(hosts_allow_table, request))
26ad4bc
+    if (table_match(hosts_allow_table, request) == YES)
26ad4bc
 	return (YES);
26ad4bc
     if (table_match(hosts_deny_table, request) == NO)
26ad4bc
 	return (YES);
e615632
@@ -177,7 +177,7 @@ struct request_info *request;
26ad4bc
 	tcpd_warn("cannot open %s: %m", table);
26ad4bc
 	match = ERR;
26ad4bc
     }
26ad4bc
-    if (match) {
26ad4bc
+    if (match == YES) {
26ad4bc
 	if (hosts_access_verbose > 1)
26ad4bc
 	    syslog(LOG_DEBUG, "matched:  %s line %d",
26ad4bc
 		   tcpd_context.file, tcpd_context.line);