- markus@cvs.openbsd.org 2001/11/10 13:19:45
[sshd.c] cleanup libwrap support (remove bogus comment, bogus close(), add debug, etc).
This commit is contained in:
parent
e4a0ff4748
commit
6a4a4b9290
|
@ -58,6 +58,9 @@
|
||||||
[clientloop.c serverloop.c]
|
[clientloop.c serverloop.c]
|
||||||
don't memset too much memory, ok millert@
|
don't memset too much memory, ok millert@
|
||||||
original patch from jlk@kamens.brookline.ma.us via nalin@redhat.com
|
original patch from jlk@kamens.brookline.ma.us via nalin@redhat.com
|
||||||
|
- markus@cvs.openbsd.org 2001/11/10 13:19:45
|
||||||
|
[sshd.c]
|
||||||
|
cleanup libwrap support (remove bogus comment, bogus close(), add debug, etc).
|
||||||
|
|
||||||
20011109
|
20011109
|
||||||
- (stevesk) auth-pam.c: use do_pam_authenticate(PAM_DISALLOW_NULL_AUTHTOK)
|
- (stevesk) auth-pam.c: use do_pam_authenticate(PAM_DISALLOW_NULL_AUTHTOK)
|
||||||
|
@ -6870,4 +6873,4 @@
|
||||||
- Wrote replacements for strlcpy and mkdtemp
|
- Wrote replacements for strlcpy and mkdtemp
|
||||||
- Released 1.0pre1
|
- Released 1.0pre1
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.1652 2001/11/12 00:06:54 djm Exp $
|
$Id: ChangeLog,v 1.1653 2001/11/12 00:07:11 djm Exp $
|
||||||
|
|
12
sshd.c
12
sshd.c
|
@ -40,7 +40,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
RCSID("$OpenBSD: sshd.c,v 1.208 2001/11/09 19:08:35 markus Exp $");
|
RCSID("$OpenBSD: sshd.c,v 1.209 2001/11/10 13:19:45 markus Exp $");
|
||||||
|
|
||||||
#include <openssl/dh.h>
|
#include <openssl/dh.h>
|
||||||
#include <openssl/bn.h>
|
#include <openssl/bn.h>
|
||||||
|
@ -1134,9 +1134,8 @@ main(int ac, char **av)
|
||||||
remote_port = get_remote_port();
|
remote_port = get_remote_port();
|
||||||
remote_ip = get_remote_ipaddr();
|
remote_ip = get_remote_ipaddr();
|
||||||
|
|
||||||
/* Check whether logins are denied from this host. */
|
|
||||||
#ifdef LIBWRAP
|
#ifdef LIBWRAP
|
||||||
/* XXX LIBWRAP noes not know about IPv6 */
|
/* Check whether logins are denied from this host. */
|
||||||
{
|
{
|
||||||
struct request_info req;
|
struct request_info req;
|
||||||
|
|
||||||
|
@ -1144,13 +1143,14 @@ main(int ac, char **av)
|
||||||
fromhost(&req);
|
fromhost(&req);
|
||||||
|
|
||||||
if (!hosts_access(&req)) {
|
if (!hosts_access(&req)) {
|
||||||
|
debug("Connection refused by tcp wrapper");
|
||||||
refuse(&req);
|
refuse(&req);
|
||||||
close(sock_in);
|
/* NOTREACHED */
|
||||||
close(sock_out);
|
fatal("libwrap refuse returns");
|
||||||
}
|
}
|
||||||
/*XXX IPv6 verbose("Connection from %.500s port %d", eval_client(&req), remote_port); */
|
|
||||||
}
|
}
|
||||||
#endif /* LIBWRAP */
|
#endif /* LIBWRAP */
|
||||||
|
|
||||||
/* Log the connection. */
|
/* Log the connection. */
|
||||||
verbose("Connection from %.500s port %d", remote_ip, remote_port);
|
verbose("Connection from %.500s port %d", remote_ip, remote_port);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue