From 47d1cf9b559d3ad46027b7a2eccd48adce3924a8 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Tue, 3 Feb 2004 13:54:36 +0000 Subject: [PATCH] Fixed (optional) TCP Wrapper test which was broken and could result in false results. Thanks to Fuminori Tanizaki ! --- ChangeLog | 4 +++- src/ngircd/conn.c | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index a5eb48c9..b3710b81 100644 --- 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 ! - 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 $ diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c index ef660e4e..9c1b4169 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.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 @@ -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! */ -- 2.39.2