summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-11-12 11:07:11 +1100
committerDamien Miller <djm@mindrot.org>2001-11-12 11:07:11 +1100
commit6a4a4b9290d49016f4410261575b6fbb7ee2543e (patch)
tree4020400827b64436d4ff3e9ac96268f34da9715a /sshd.c
parente4a0ff4748faef9abd0244eef0321d466baf461c (diff)
- markus@cvs.openbsd.org 2001/11/10 13:19:45
[sshd.c] cleanup libwrap support (remove bogus comment, bogus close(), add debug, etc).
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sshd.c b/sshd.c
index 22ea8990e..71a5c2c2e 100644
--- a/sshd.c
+++ b/sshd.c
@@ -40,7 +40,7 @@
40 */ 40 */
41 41
42#include "includes.h" 42#include "includes.h"
43RCSID("$OpenBSD: sshd.c,v 1.208 2001/11/09 19:08:35 markus Exp $"); 43RCSID("$OpenBSD: sshd.c,v 1.209 2001/11/10 13:19:45 markus Exp $");
44 44
45#include <openssl/dh.h> 45#include <openssl/dh.h>
46#include <openssl/bn.h> 46#include <openssl/bn.h>
@@ -1134,9 +1134,8 @@ main(int ac, char **av)
1134 remote_port = get_remote_port(); 1134 remote_port = get_remote_port();
1135 remote_ip = get_remote_ipaddr(); 1135 remote_ip = get_remote_ipaddr();
1136 1136
1137 /* Check whether logins are denied from this host. */
1138#ifdef LIBWRAP 1137#ifdef LIBWRAP
1139 /* XXX LIBWRAP noes not know about IPv6 */ 1138 /* Check whether logins are denied from this host. */
1140 { 1139 {
1141 struct request_info req; 1140 struct request_info req;
1142 1141
@@ -1144,13 +1143,14 @@ main(int ac, char **av)
1144 fromhost(&req); 1143 fromhost(&req);
1145 1144
1146 if (!hosts_access(&req)) { 1145 if (!hosts_access(&req)) {
1146 debug("Connection refused by tcp wrapper");
1147 refuse(&req); 1147 refuse(&req);
1148 close(sock_in); 1148 /* NOTREACHED */
1149 close(sock_out); 1149 fatal("libwrap refuse returns");
1150 } 1150 }
1151/*XXX IPv6 verbose("Connection from %.500s port %d", eval_client(&req), remote_port); */
1152 } 1151 }
1153#endif /* LIBWRAP */ 1152#endif /* LIBWRAP */
1153
1154 /* Log the connection. */ 1154 /* Log the connection. */
1155 verbose("Connection from %.500s port %d", remote_ip, remote_port); 1155 verbose("Connection from %.500s port %d", remote_ip, remote_port);
1156 1156