diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2004-06-25 01:16:10 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2004-06-25 01:16:10 +0000 |
commit | eaa0a0397cf98d29d225383ce8eca93bd0893d45 (patch) | |
tree | 487d50f400f041d6f5c877d2c0b57b6552f2d01e /usr.bin/ssh/sshd.c | |
parent | 08c396ad4df7a545a2557f8cb32b147955f9aade (diff) |
only perform tcp wrappers checks when the incoming connection is on a socket.
silences useless warnings from regress tests that use proxycommand="sshd -i"
prompted by david@ ok markus@
Diffstat (limited to 'usr.bin/ssh/sshd.c')
-rw-r--r-- | usr.bin/ssh/sshd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/sshd.c b/usr.bin/ssh/sshd.c index af09aa36d9c..e5670bb4844 100644 --- a/usr.bin/ssh/sshd.c +++ b/usr.bin/ssh/sshd.c @@ -42,7 +42,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: sshd.c,v 1.294 2004/06/24 19:30:54 djm Exp $"); +RCSID("$OpenBSD: sshd.c,v 1.295 2004/06/25 01:16:09 djm Exp $"); #include <openssl/dh.h> #include <openssl/bn.h> @@ -1544,7 +1544,7 @@ main(int ac, char **av) #ifdef LIBWRAP /* Check whether logins are denied from this host. */ - { + if (packet_connection_is_on_socket()) { struct request_info req; request_init(&req, RQ_DAEMON, __progname, RQ_FILE, sock_in, 0); |