]> arthur.barton.de Git - ngircd.git/commitdiff
Fixed (optional) TCP Wrapper test which was broken and could result in
authorAlexander Barton <alex@barton.de>
Tue, 3 Feb 2004 13:54:36 +0000 (13:54 +0000)
committerAlexander Barton <alex@barton.de>
Tue, 3 Feb 2004 13:54:36 +0000 (13:54 +0000)
false results. Thanks to Fuminori Tanizaki <tany@mcnet.ad.jp>!

ChangeLog
src/ngircd/conn.c

index a5eb48c98f33eb34a1093b7cb8a5858d12732624..b3710b8177e76c2a1911fd03747b3e22a9f2f6ef 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -12,6 +12,8 @@
 
 ngIRCd 0.7-CVS
 
+  - Fixed (optional) TCP Wrapper test which was broken and could result in
+    false results. Thanks to Fuminori Tanizaki <tany@mcnet.ad.jp>!
   - Removed "USE_" prefixes of configuration #defines.
 
 ngIRCd 0.7.6 (2003-12-05)
@@ -488,4 +490,4 @@ ngIRCd 0.0.1, 31.12.2001
 
 
 -- 
-$Id: ChangeLog,v 1.188.2.20 2003/12/26 16:16:48 alex Exp $
+$Id: ChangeLog,v 1.188.2.21 2004/02/03 13:54:36 alex Exp $
index ef660e4ec7a90ff18ff382052d1b8627de652ce6..9c1b41698b4e899f9044f19698a01b054d4b8f44 100644 (file)
@@ -16,7 +16,7 @@
 
 #include "portab.h"
 
-static char UNUSED id[] = "$Id: conn.c,v 1.122.2.3 2003/12/26 16:16:48 alex Exp $";
+static char UNUSED id[] = "$Id: conn.c,v 1.122.2.4 2004/02/03 13:54:36 alex Exp $";
 
 #include "imp.h"
 #include <assert.h>
@@ -937,6 +937,7 @@ New_Connection( INT Sock )
 #ifdef TCPWRAP
        /* Validate socket using TCP Wrappers */
        request_init( &req, RQ_DAEMON, PACKAGE_NAME, RQ_FILE, new_sock, RQ_CLIENT_SIN, &new_addr, NULL );
+       fromhost(&req);
        if( ! hosts_access( &req ))
        {
                /* Access denied! */