diff options
| author | Alexander Barton <alex@barton.de> | 2004-02-03 20:28:30 +0000 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2004-02-03 20:28:30 +0000 |
| commit | b90bedbcb2f860ae2202f8a870fe49c4ed2cc7e7 (patch) | |
| tree | bde737ace97f378e892e6a8e397b54ed28c58549 /src | |
| parent | c2a154a33eb742ad5dca7203e0be4eeda76bd6c0 (diff) | |
| download | ngircd-b90bedbcb2f860ae2202f8a870fe49c4ed2cc7e7.tar.gz ngircd-b90bedbcb2f860ae2202f8a870fe49c4ed2cc7e7.zip | |
Fixed (optional) TCP Wrapper test which was broken and could result in
false results. Thanks to Fuminori Tanizaki <tany@mcnet.ad.jp>!
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/conn.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <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! */ |