mirror of
https://github.com/osmarks/ngircd.git
synced 2025-10-21 09:27:39 +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:
@@ -12,6 +12,8 @@
|
|||||||
|
|
||||||
ngIRCd 0.7-CVS
|
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.
|
- Removed "USE_" prefixes of configuration #defines.
|
||||||
|
|
||||||
ngIRCd 0.7.6 (2003-12-05)
|
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 $
|
||||||
|
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
#include "portab.h"
|
#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 "imp.h"
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
@@ -937,6 +937,7 @@ New_Connection( INT Sock )
|
|||||||
#ifdef TCPWRAP
|
#ifdef TCPWRAP
|
||||||
/* Validate socket using TCP Wrappers */
|
/* Validate socket using TCP Wrappers */
|
||||||
request_init( &req, RQ_DAEMON, PACKAGE_NAME, RQ_FILE, new_sock, RQ_CLIENT_SIN, &new_addr, NULL );
|
request_init( &req, RQ_DAEMON, PACKAGE_NAME, RQ_FILE, new_sock, RQ_CLIENT_SIN, &new_addr, NULL );
|
||||||
|
fromhost(&req);
|
||||||
if( ! hosts_access( &req ))
|
if( ! hosts_access( &req ))
|
||||||
{
|
{
|
||||||
/* Access denied! */
|
/* Access denied! */
|
||||||
|
Reference in New Issue
Block a user