Hi,

The following patch fixes the problem.  

---cut---
diff -Nur -x '*.orig' -x '*~' powerman-2.3.5/src/client.c 
powerman-2.3.5.new/src/client.c
--- powerman-2.3.5/src/client.c 2009-04-17 23:51:18.000000000 +0000
+++ powerman-2.3.5.new/src/client.c     2015-07-24 16:38:13.000000000 +0000
@@ -910,9 +910,11 @@
 #if HAVE_TCP_WRAPPERS
     /* get authorization from tcp wrappers */
     if (conf_get_use_tcp_wrappers()) {
-        if (!hosts_ctl(DAEMON_NAME,
-                       c->host ? c->host : STRING_UNKNOWN,
-                       c->ip, STRING_UNKNOWN)) {
+      struct request_info req;
+      
+      request_init(&req, RQ_DAEMON, DAEMON_NAME, RQ_FILE, c->fd, NULL);
+      fromhost(&req);
+      if (!hosts_access(&req)) {
             err(FALSE, "_create_client: tcp wrappers denies %s:%d",
                 c->host ? c->host : c->ip, c->port);
             _destroy_client(c);
---cut---

Regards,
-- Brett


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to