2012-04-22 04:21:26 +02:00
|
|
|
--- hosts_access.c.orig
|
2008-10-13 18:39:38 +02:00
|
|
|
+++ hosts_access.c
|
2012-04-22 04:21:26 +02:00
|
|
|
@@ -146,7 +146,7 @@ struct request_info *request;
|
2008-10-13 18:39:38 +02:00
|
|
|
verdict = setjmp(tcpd_buf);
|
|
|
|
if (verdict != 0)
|
|
|
|
return (verdict == AC_PERMIT);
|
|
|
|
- if (table_match(hosts_allow_table, request))
|
|
|
|
+ if (table_match(hosts_allow_table, request) == YES)
|
|
|
|
return (YES);
|
|
|
|
if (table_match(hosts_deny_table, request))
|
|
|
|
return (NO);
|
2012-04-22 04:21:26 +02:00
|
|
|
@@ -195,7 +195,7 @@ struct request_info *request;
|
2008-10-13 18:39:38 +02:00
|
|
|
} else if (errno != ENOENT) {
|
|
|
|
tcpd_warn("cannot open %s: %m", table);
|
|
|
|
}
|
|
|
|
- if (match) {
|
|
|
|
+ if (match == YES) {
|
|
|
|
if (hosts_access_verbose > 1)
|
|
|
|
syslog(LOG_DEBUG, "matched: %s line %d",
|
|
|
|
tcpd_context.file, tcpd_context.line);
|