Blame SOURCES/tcp_wrappers-7.6-fix_sig-bug141110.patch

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