diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2012-11-16 14:58:48 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2012-11-16 15:01:41 +0000 |
commit | ec147f48fb7314eaf4eab92e558ed8081d7fab90 (patch) | |
tree | afc1bd9d0c22c5d232339d2d546253a8fe5d42e6 | |
parent | ff9082c454da83f033e1b605d99569c0a476fdc1 (diff) | |
download | tcp-wrappers-ec147f48fb7314eaf4eab92e558ed8081d7fab90.tar.gz |
Patch from Fedora: tcp_wrappers-7.6-fix_sig-bug141110.patch
-rw-r--r-- | hosts_access.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hosts_access.c b/hosts_access.c index 4b17874..55481ef 100644 --- a/hosts_access.c +++ b/hosts_access.c @@ -127,7 +127,7 @@ struct request_info *request; 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) == NO) return (YES); @@ -177,7 +177,7 @@ struct request_info *request; tcpd_warn("cannot open %s: %m", table); match = ERR; } - if (match) { + if (match == YES) { if (hosts_access_verbose > 1) syslog(LOG_DEBUG, "matched: %s line %d", tcpd_context.file, tcpd_context.line); |