From: Alexander Barton Date: Tue, 3 Feb 2004 20:28:30 +0000 (+0000) Subject: Fixed (optional) TCP Wrapper test which was broken and could result in X-Git-Tag: rel-0-8-0-pre1~43 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=commitdiff_plain;h=b90bedbcb2f860ae2202f8a870fe49c4ed2cc7e7 Fixed (optional) TCP Wrapper test which was broken and could result in false results. Thanks to Fuminori Tanizaki ! --- diff --git a/ChangeLog b/ChangeLog index 9055c64b..10b6ee71 100644 --- a/ChangeLog +++ b/ChangeLog @@ -12,6 +12,8 @@ ngIRCd CVSHEAD + - Fixed (optional) TCP Wrapper test which was broken and could result in + false results. Thanks to Fuminori Tanizaki ! - The type of service (TOS) of all sockets is set to "interactive" now. - Added short command line option "-t" as alternative to "--configtest". - Added optional support for "IDENT" lookups on incoming connections. You @@ -493,4 +495,4 @@ ngIRCd 0.0.1, 31.12.2001 -- -$Id: ChangeLog,v 1.223 2004/01/26 02:23:54 alex Exp $ +$Id: ChangeLog,v 1.224 2004/02/03 20:28:30 alex Exp $ diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c index 351a2459..42ccd002 100644 --- a/src/ngircd/conn.c +++ b/src/ngircd/conn.c @@ -16,7 +16,7 @@ #include "portab.h" -static char UNUSED id[] = "$Id: conn.c,v 1.130 2004/01/25 16:06:35 alex Exp $"; +static char UNUSED id[] = "$Id: conn.c,v 1.131 2004/02/03 20:28:30 alex Exp $"; #include "imp.h" #include @@ -941,6 +941,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! */