1
0
mirror of https://github.com/osmarks/ngircd.git synced 2025-09-13 07:46:02 +00:00

Fixed (optional) TCP Wrapper test which was broken and could result in

false results. Thanks to Fuminori Tanizaki <tany@mcnet.ad.jp>!
This commit is contained in:
Alexander Barton
2004-02-03 20:28:30 +00:00
parent c2a154a33e
commit b90bedbcb2
2 changed files with 5 additions and 2 deletions

View File

@@ -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 <assert.h>
@@ -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! */