diff options
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -40,7 +40,7 @@ | |||
40 | */ | 40 | */ |
41 | 41 | ||
42 | #include "includes.h" | 42 | #include "includes.h" |
43 | RCSID("$OpenBSD: sshd.c,v 1.208 2001/11/09 19:08:35 markus Exp $"); | 43 | RCSID("$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 | ||