[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

redir : general protection error



Package: redir
Severity: important
Tags: patch

I have a general protection error , on AMD64 platform . 
The patch in attachement solve this problem and a warning during the compilation . 

-- 
     ____________________________________________________________
    / Erwan MAS                                                 /\
   | mailto:erwan@mas.nom.fr                                   |_/
___|________________________________________________________   |
\___________________________________________________________\__/
--- /tmp/redir.c.orig   2005-01-23 16:14:41.021783104 +0100
+++ redir.c     2005-01-23 16:16:17.589102640 +0100
@@ -559,8 +559,8 @@
 #ifdef USE_TCP_WRAPPERS
      request_init(&request, RQ_DAEMON, ident, RQ_FILE, clisock, 0);
      sock_host(&request);
-     sock_hostname(&request);
-     sock_hostaddr(&request);
+     sock_hostname(request.client);
+     sock_hostaddr(request.client);
 
      if (!hosts_access(&request)) {
        refuse(&request);
@@ -790,8 +790,8 @@
 #ifdef USE_TCP_WRAPPERS
        request_init(&request, RQ_DAEMON, ident, RQ_FILE, 0, 0);
        sock_host(&request);
-       sock_hostname(&request);
-       sock_hostaddr(&request);
+       sock_hostname(request.client);
+       sock_hostaddr(request.client);
        
        if (!hosts_access(&request))
                refuse(&request);

Reply to: